ocaml/dune
Dependency analysis: Unnecessary/undesired compilation unit included in executable
Aperta
#753 aperta il 8 mag 2018
help wantedwontfix
Metriche repository
- Star
- (1882 stelle)
- Metriche merge PR
- (Merge medio 1g 20h) (345 PR mergiate in 30 g)
Descrizione
There seems to be the following problem:
open Hellolib;;
Hello.hello () (* = Hellolib.Hello.hello () *)
results in any local hello.ml to be compiled and linked against our executable, even though we don't use this Hello in this particular program.
Suggested workaround: Rename the local hello.ml, e.g. hello_main.ml.
See https://github.com/mjambon/dune-dependencies for exact reproduction details.