使用 OASIS 输出程序集文件

Output assembly files with OASIS

有没有办法在使用 OASIS 构建时保留程序集文件?

我正在寻找比直接使用 ocamlopt -S 更简单的方法。

使用 NativeOpt 字段指定此标志:

Executable "prog"
  Path:           src
  MainIs:         main.ml
  Install:        true
  NativeOpt:      -S
  CompiledObject: best