Skip to content

Commit

Permalink
Cleaner dune files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerl13 committed May 24, 2020
1 parent f873f3e commit 0e6951b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(env
(_ (c_flags :standard -Wall -Werror -Wpedantic)))
4 changes: 2 additions & 2 deletions prng/src/splitmix/tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

(rule
(target sm64_c.exe)
(deps reference.h (:codedeps sm64_c.c reference.c ../../testutils/libtestutils.a))
(deps reference.h (:codedeps sm64_c.c reference.c %{lib-private:testutils:libtestutils.a}))
(action
(run cc -Wall -Wextra -Wpedantic -o %{target} %{codedeps})))
(run %{cc} -o %{target} %{codedeps})))

(rule (with-stdout-to sm64_ocaml.output (run ./sm64_ocaml.exe --nb=1000)))
(rule (with-stdout-to sm64_c.output (run ./sm64_c.exe --nb=1000)))
Expand Down
1 change: 0 additions & 1 deletion prng/src/testutils/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(foreign_library
(archive_name testutils)
(language c)
(flags -Wall -Wextra -Wpedantic)
(names testutils))

(library
Expand Down
4 changes: 2 additions & 2 deletions prng/src/xoshiro/tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

(rule
(target x256pp_c.exe)
(deps reference.h (:codedeps x256pp_c.c reference.c ../../testutils/libtestutils.a))
(deps reference.h (:codedeps x256pp_c.c reference.c %{lib-private:testutils:libtestutils.a}))
(action
(run cc -Wall -Wextra -Wpedantic -o %{target} %{codedeps})))
(run %{cc} -o %{target} %{codedeps})))


(rule (with-stdout-to x256pp_int.output (run ./int.exe --nb=1000)))
Expand Down

0 comments on commit 0e6951b

Please sign in to comment.