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

Example for enabled_if system in dune files

$
0
0

As recently discussed in the “zoo of values” thread, %system == "linux" can not be used to distinguish Linux targets from non-Linux targets.

How does one construct an enabled_if such that a (executable) is only built for a certain target? It seems an external binary has to be called, for example a helper which returns a bool based on the C preprocessor values.

Is there a way to use an generated include for that, which contains (enabled_if true|false)?

(executable (include some.inc))

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 539

Trending Articles