Andreas Romeyke
Andreas Romeyke

Reputation: 333

How to force ocamlbuild using already built obj-files if two different targets compiled serially

I have two different ml-targets, which should be compiled to native code. Both targets are sharing some modules.

The problem is, if I run "ocamlbuild targetA" the modules C, D and E are compiled to object code. But when I run than "ocamlbuild targetB" the modules D and E will be recompiled again.

How could I force that the recompilation of modules D and E (which are shared by targetA and targetB) will be avoided?

I am using ocamlbuild 3.11.2.

Any hints?

Bye Andreas

Upvotes: 1

Views: 100

Answers (1)

Josh Berdine
Josh Berdine

Reputation: 326

Would using a single invocation of ocamlbuild work for you? That is, run "ocamlbuild targetA targetB" or use an .itarget.

Upvotes: 1

Related Questions