ocaml/dune
Dependency analysis: Unnecessary/undesired compilation unit included in executable
Open
#753 opened on May 8, 2018
help wantedwontfix
Repository metrics
- Stars
- (1,882 stars)
- PR merge metrics
- (Avg merge 1d 20h) (345 merged PRs in 30d)
Description
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.