-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install the "flexdll" package in the toolchains directory on windows #11158
Comments
Note that dune currently has some logic for rewriting the compiler's build and install commands to install the package to the toolchains directory rather than inside the project's _build directory. This logic is highly specialized to build and install commands for the ocaml-base-compiler's opam package ind it won't generalize to flexdll. |
This turns out not to be necessary. When ocaml is built it needs access to flexdll but after that point flexdll can be removed. Thus there's no reason to keep flexdll around in a user-wide place such as the toolchains dir. Installing it into the _build directory of the first dune project that needs the compiler is an acceptable solution, so no work here is needed. |
Are you sure? |
That has been my experience. I built and installed the compiler manually, pointing |
Note that depending on how you configure OCaml, |
Dune installs the ocaml compiler package to ~/.cache/dune/toolchains when using package management features. On unix systems the compiler has no dependencies so the only package that must be installed this way is the compiler itself. However on windows the compiler (specifically ocaml-base-compiler) depends on the package flexdll. On windows, flexdll must be installed to the toolchains directory along with the compiler in order to resolve the compiler's dependency on flexdll.
The text was updated successfully, but these errors were encountered: