ocaml/dune

Support for compiling and linking non-C objects (such as Fortran)

開放

#803 建立於 2018年5月25日

 (5 則留言) (0 個反應) (0 位負責人)OCaml (478 個分叉)github user discovery
help wantedrule

倉庫指標

星標
 (1,882 顆星)
PR 合併指標
 (平均合併 1天 20小時) (30 天內合併 345 個 PR)

描述

Hi,

I have some F90 code in my project that I'd like to be built and linked with the rest. Is there a way of doing this with Dune? If there is it's not obvious, neither from the documentation nor from a quick glance at the code :) Of course for C it's easy.

For reference with Oasis & Ocamlbuild I use an .f90-to-.o rule in myocamlbuild.ml and then I cheat by telling Oasis that it's C code (i.e. I say CSources: foo.c when in reality the file is foo.f90).

貢獻者指南