3

Ocamlbuildを使用して有効なプロファイル情報でビルドするにはどうすればよいですか?-pそこでは機能しないようです。

今、私はこれに使用ocamloptします。例えば、

$ ocamlfind ocamlopt -c -p -thread -package core test.ml
$ ocamlfind ocamlopt -p -o test -thread -package core -linkpkg test.cmx

で同じことをする方法

ocamlbuild -user-ocamlfind test.native
4

1 に答える 1

6

引数を明示的に渡すことができます、

ocamlbuild -cflags -p

またはあなたの_tagsファイルで、

true : profile

ファイル名のルールもあります。

ocamlbuild test.p.native
于 2013-02-08T20:07:58.140 に答える