gasche / manual-ocamlbuild

A new reference manual for the ocamlbuild tool
Other
67 stars 15 forks source link

-cflags, -lflags #37

Open william3 opened 8 years ago

william3 commented 8 years ago

those are very helpful flags that are missing explanations in the doc. I was looking for flambda flags, did not find them, and then recalled there was a way to use not supported flags, using -cflags and -lflags.

gasche commented 8 years ago

Flambda flags have recently been contributed in ocaml/ocamlbuild#68 , and they should part of a release that will be coming out as soon as I have time to send it out.

You are totally right about cflags and lflags missing some documentation, though, they are only obliquely referenced.

william3 commented 8 years ago

actually, -ocamlopt "ocamlopt -O3" seems to work better. It would be nice to group those flags (-cflags, -lflags, -ocamlc, -ocamlopt, -ocamlmklib, ...) as tags useful if features are not supported by ocamlbuild, or for better tuning