Skip to content

Commit

Permalink
Use CAML_LD_LIBRARY_PATH on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Nov 27, 2023
1 parent d97b66c commit 515ba4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/with-dkml/cmdline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ let set_precompiled_env abs_cmd_p =
in
when_dir_exists_prepend_pathlike_env ~envvar:"PATH" bc_stublibs_p
| false ->
(* Unix (generally) requires .so in LD_LIBRARY_PATH *)
(* Unix (generally) requires .so in CAML_LD_LIBRARY_PATH *)
let* () =
when_dir_exists_prepend_pathlike_env ~envvar:"LD_LIBRARY_PATH"
when_dir_exists_prepend_pathlike_env ~envvar:"CAML_LD_LIBRARY_PATH"
bc_ocaml_stublibs_p
in
when_dir_exists_prepend_pathlike_env ~envvar:"LD_LIBRARY_PATH"
when_dir_exists_prepend_pathlike_env ~envvar:"CAML_LD_LIBRARY_PATH"
bc_stublibs_p
in
(* Dune requires ocamlc in the PATH. It should already be present
Expand Down

0 comments on commit 515ba4b

Please sign in to comment.