ocaml-community / ocamlscript

Write an OCaml script, run an optimized executable
Boost Software License 1.0
74 stars 7 forks source link

Support opam findlib + system compiler #1

Closed djs55 closed 10 years ago

djs55 commented 10 years ago

When findlib is installed via opam as a normal user, it cannot install 'topfind' in the system compiler's directory. Instead opam will set the environment variable OCAML_TOPLEVEL_PATH to point to it and add some runes to .ocamlinit.

This patch adds the same runes to the generated OCaml code before the '#use topfind' line.

See ocaml/opam#45

mjambon commented 10 years ago

Thanks.