Is there a way to pass compiler flags to an existing dune based project? The documentaton does not seem to cover this.
I’m looking for the equivalent of ‘env CFLAGS=“some string” ./configure’. Right now projects can query pkg-config to receive at least the most required CFLAGS/LDFLAGS.
The ‘dune build --verbose’ output has ‘ocamlc_cflags’, which contains the CFLAGS used for ocaml itself. It seems there is no way to access it.
Was it ever considered to inject CFLAGS into projects?