ocaml / ocamlbuild

The legacy OCamlbuild build manager
Other
121 stars 81 forks source link

cmxs rules are mentioning .so without producing them #304

Closed ivg closed 4 years ago

ivg commented 4 years ago

All cmxs producing rules are mentioning a .so as a product, though it is not able to produce it, at least on a Linux machine. The link_shared rule is creating a call to ocamlopt with the -shared option, which doesn't produce .so nor it is compatible with the output-obj option.

This issue has a significant impact on (re)build times as it prevents the cache system from working properly. The cache system looks for the so file and retriggers linking for each library every time, even when nothing is changed.

gasche commented 4 years ago

Fixed by #305.