ocaml/dune

Dependency analysis: Unnecessary/undesired compilation unit included in executable

Ouverte

#753 ouverte le 8 mai 2018

 (13 commentaires) (0 réaction) (0 personne assignée)OCaml (478 forks)github user discovery
help wantedwontfix

Métriques du dépôt

Stars
 (1 882 étoiles)
Métriques de merge PR
 (Merge moyen 1j 20h) (345 PRs mergées en 30 j)

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.

Guide contributeur