File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ Undefined symbols for architecture ...:
50
50
51
51
* If you need to change where ` pkg-config ` will look for the SQLite3
52
52
library, set the ` PKG_CONFIG_PATH ` environment variable to the new
53
- directory.
53
+ directory. This can be automated by setting the ` SQLITE3_OCAML_BREWCHECK `
54
+ environment variable; this will instruct the build to see if a _ brewed_
55
+ version os sqlite is installed and route ` pkg-config ` appropriately.
54
56
55
57
Credits
56
58
-------
Original file line number Diff line number Diff line change @@ -712,7 +712,11 @@ let pkg_export =
712
712
let env = BaseEnvLight. load () in
713
713
let bcs = BaseEnvLight. var_get " brewcheck" env in
714
714
let bcs = try bool_of_string bcs with _ -> false in
715
- if not bcs then " "
715
+ let proc_env =
716
+ try ignore (Sys. getenv " SQLITE3_OCAML_BREWCHECK" ); true
717
+ with _ -> false
718
+ in
719
+ if not (bcs || proc_env) then " "
716
720
else
717
721
let cmd = " brew ls sqlite | grep pkgconfig" in
718
722
match read_lines_from_cmd ~max_lines: 1 cmd with
You can’t perform that action at this time.
0 commit comments