ocaml/dune
Dependency analysis: Unnecessary/undesired compilation unit included in executable
开放
#753 创建于 2018年5月8日
help wantedwontfix
仓库指标
- 星标
- (1,882 个星标)
- PR 合并指标
- (平均合并 1天 20小时) (30 天内合并 345 个 PR)
描述
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.