dbuenzli / topkg

The transitory OCaml software packager
http://erratique.ch/software/topkg
ISC License
69 stars 25 forks source link

Allow building mllibs without cmxs #96

Closed stedolan closed 7 years ago

stedolan commented 7 years ago

Pkg.mllib currently builds a .cma, .cmxa and .cmxs out of a .mllib specification. I'd like to be able to choose which targets are built (in particular, to avoid building .cmxs in situations where it doesn't make sense)

dbuenzli commented 7 years ago

For some reason this breaks the build of ptime.

dbuenzli commented 7 years ago

So it seems there's a missing dependency between somelib.a and somelib.cmxs and a20b81b slightly changed the order on which targets to the single topkg invocation are given on the cli. The old order, combined with ocamlbuild's poor parallelism made the build work.

It checked the build succeeds with the upcoming ocamlbuild 0.11.0 sports a new rule to generate a .cmxs from a .mllib. Apparently it has the right deps.

Meanwhile I'm going to revert to the previous invocation order so that ptime does not break.

Boy our build systems are brittle.