ocaml/dune

Dependency analysis: Unnecessary/undesired compilation unit included in executable

開放

#753 建立於 2018年5月8日

 (13 則留言) (0 個反應) (0 位負責人)OCaml (478 個分叉)github user discovery
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.

貢獻者指南