Skip to content

Commit

Permalink
Compatibility with LSP server build on different platforms (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr authored Jan 22, 2025
2 parents c3072bc + d810051 commit 83da4bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtimes/c/dune
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
(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.
; A workaround is to install a mingw toolchain that exposes ar.
(run ar rcs %{target} %{lib:dates_calc:c/dates_calc.o} %{deps})))

(rule
Expand Down

0 comments on commit 83da4bf

Please sign in to comment.