Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 520

How to pass CFLAGS into a dune project?

$
0
0

@olafhering wrote:

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?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 520

Trending Articles