gpt4 book ai didi

ocaml - 使用 Ocamlbuild 使用配置文件信息构建 native 可执行文件

转载 作者:行者123 更新时间:2023-12-01 10:56:42 26 4
gpt4 key购买 nike

如何使用 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

最佳答案

你可以显式传递参数,

ocamlbuild -cflags -p

或在您的_tags 文件中,

true : profile

文件名也有规则,

ocamlbuild test.p.native

关于ocaml - 使用 Ocamlbuild 使用配置文件信息构建 native 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14779685/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com