-
Notifications
You must be signed in to change notification settings - Fork 5
Hygiene problems and slow compilation with extra directories #52
Comments
As a workaround, one can create an
|
Adding |
Adding |
Hmm... so is |
I think |
We should be able to handle this by adding Regardless, "true: -traverse" is too broad. We get errors like "Ocamlbuild knows of no rules that apply to a target named src/a.ml". It no longer knows about the source files even though they are referenced in rules. I'm not sure we'll be able to resolve this. We'd have to add rules to copy Next best option is to add a |
I'm affraid there is no workaround here without modifying |
Consider a trivial app:
print_endline "test"
Everything builds fine. A problem arises if we have unrelated directories in the same folder: Compilation is slow (unrelated directories seem to be traversed) and compilation fails with hygiene problems. The latter can be fixed by adding
-no-hygiene
to the ocamlbuild command line. I'm not sure if that is an appropriate fix though.For testing, you can symlink any big folder to the project folder, for example.
ln -s ~/.opam/ .
The text was updated successfully, but these errors were encountered: