Skip to content

Commit

Permalink
Fix C runtime build
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-botbol committed Jan 10, 2025
1 parent 0422f5c commit 51772e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtimes/c/dune
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
(rule
(deps runtime.c runtime.h)
(deps runtime.c runtime.h dates_calc.h)
(target runtime.o)
(action
(system
"%{cc} --std=c89 -Wall -Werror -pedantic -c runtime.c -I $(ocamlfind query dates_calc)/c -o %{target}")))
"%{cc} --std=c89 -Wall -Werror -pedantic -c runtime.c -I . -o %{target}")))

(rule
(deps runtime.o)
(target catala_runtime.a)
(action
; FIXME: ar is not portable, it makes the build fails on windows ;
(run ar rcs %{target} %{lib:dates_calc:c/dates_calc.o} %{deps})))

(rule
Expand Down

0 comments on commit 51772e9

Please sign in to comment.