Skip to content

Commit

Permalink
fix: update dune and fix deps
Browse files Browse the repository at this point in the history
we need to specify dependencies on all source files that are used by

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Mar 1, 2022
1 parent a635233 commit fba7512
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(lang dune 1.10)
(lang dune 2.0)
7 changes: 5 additions & 2 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
(public_name num.core)
(wrapped false)
(modules arith_flags arith_status big_int int_misc nat num ratio)
(c_names nat_stubs bng bng_generic)
(c_flags "-DBNG_ARCH_%{architecture}")
(foreign_stubs
(language c)
(names nat_stubs bng bng_generic)
(extra_deps (glob_files *.c))
(flags "-DBNG_ARCH_%{architecture}"))
(flags -w +a-4-9-41-42-44-45-48 -warn-error +A -bin-annot -g -safe-string -strict-sequence -strict-formats))

(rule
Expand Down
5 changes: 3 additions & 2 deletions test/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(alias
(name runtest)
(rule
(alias runtest)
(action (progn (run %{dep:driver.bc}) (run %{dep:driver.exe}))))

(library
Expand All @@ -11,6 +11,7 @@
(name driver)
(modules driver)
(flags -linkall)
(modes (byte exe))
(libraries test_lib))

(rule (with-stdout-to driver.ml (echo "")))

0 comments on commit fba7512

Please sign in to comment.