update dune to 1.10, condition some rules to unix

This commit is contained in:
Simon Cruanes 2022-02-20 22:00:46 -05:00
parent b23e075762
commit ef9851983f
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6
6 changed files with 7 additions and 6 deletions

2
dune
View file

@ -1,9 +1,11 @@
(rule (rule
(targets README.md.corrected) (targets README.md.corrected)
(deps (package containers-data) ./src/mdx_runner.exe) (deps (package containers-data) ./src/mdx_runner.exe)
(enabled_if (= %{system} "linux"))
(action (run ./src/mdx_runner.exe))) (action (run ./src/mdx_runner.exe)))
(rule (rule
(alias runtest) (alias runtest)
(package containers-data) (package containers-data)
(enabled_if (= %{system} "linux"))
(action (diff README.md README.md.corrected))) (action (diff README.md README.md.corrected)))

View file

@ -18,7 +18,7 @@
(wrapped false) (wrapped false)
(modules :standard \ mkshims) (modules :standard \ mkshims)
(preprocess (action (run %{project_root}/src/core/cpp/cpp.exe %{input-file}))) (preprocess (action (run %{project_root}/src/core/cpp/cpp.exe %{input-file})))
(flags :standard -warn-error -a+8 -w -32 -safe-string (flags :standard -warn-error -a+8 -w -32-70 -safe-string
-strict-sequence -nolabels -open CCMonomorphic) -strict-sequence -nolabels -open CCMonomorphic)
(libraries seq either containers.monomorphic)) (libraries seq either containers.monomorphic))

View file

@ -3,5 +3,6 @@
(name containers_data) (name containers_data)
(public_name containers-data) (public_name containers-data)
(wrapped false) (wrapped false)
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string -open CCShims_) (flags :standard -warn-error -3 -w -70 -color always
-safe-string -strict-sequence -open CCShims_)
(libraries containers)) (libraries containers))

View file

@ -1,7 +1,7 @@
(env (env
(_ (_
(flags :standard -warn-error -3 -w -70 -color always) (flags :standard -warn-error -a+8 -w -32-70 -color always -safe-string -strict-sequence)
(ocamlopt_flags :standard -O3 -unbox-closures -unbox-closures-factor 20 (ocamlopt_flags :standard -O3 -unbox-closures -unbox-closures-factor 20
-inline 100) -inline 100)
)) ))

View file

@ -13,5 +13,4 @@
(name containers_monomorphic) (name containers_monomorphic)
(public_name containers.monomorphic) (public_name containers.monomorphic)
(modules CCMonomorphic CCMonomorphicShims_) (modules CCMonomorphic CCMonomorphicShims_)
(wrapped false) (wrapped false))
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string))

View file

@ -4,5 +4,4 @@
(name containers_top) (name containers_top)
(public_name containers.top) (public_name containers.top)
(wrapped false) (wrapped false)
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
(libraries compiler-libs.common containers containers.unix)) (libraries compiler-libs.common containers containers.unix))