ocaml/dune

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

Aperta

#803 aperta il 25 mag 2018

 (5 commenti) (0 reazioni) (0 assegnatari)OCaml (478 fork)github user discovery
help wantedrule

Metriche repository

Star
 (1882 stelle)
Metriche merge PR
 (Merge medio 1g 20h) (345 PR mergiate in 30 g)

Descrizione

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).

Guida contributor