1

我有两个不同的 ml 目标,应该编译为本机代码。两个目标共享一些模块。

问题是,如果我运行“ocamlbuild targetA”,模块 C、D 和 E 将被编译为目标代码。但是当我运行“ocamlbuild targetB”时,模块 D 和 E 将再次重新编译。

如何强制避免重新编译模块 D 和 E(由 targetA 和 targetB 共享)?

我正在使用 ocamlbuild 3.11.2。

有什么提示吗?

再见安德烈亚斯

4

1 回答 1

1

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

于 2011-08-02T08:06:02.187 回答