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

Dune and dependencies for C files

$
0
0

@olafhering wrote:

I have (library (c_names a)), which will process an a.c. This a.c does #include "a.h". Dune already has a rule to generate this a.h with (rule (target a.h) (deps a.input) (action (with-stdout-to %{target} (system "some-command < a.input")))).

How do I tell dune to process the rule to generate a.h before it starts processing a.c?

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 520

Trending Articles