Skip to content

Commit

Permalink
Use dune.3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Mar 8, 2023
1 parent 3b1543d commit 5d054f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
4 changes: 1 addition & 3 deletions eio_browser.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
doc: "https://ocaml-multicore.github.io/eio/"
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
depends: [
"dune" {>= "2.9"}
"dune" {>= "3.7"}
"eio" {= version}
"brr" {>= "0.0.4"}
"alcotest" {>= "1.6.0" & with-test}
Expand All @@ -26,11 +26,9 @@ build: [
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/ocaml-multicore/eio.git"
12 changes: 2 additions & 10 deletions lib_eio_js/browser/example/dune
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
; We compile by hand because dune is a little broken w.r.t to
; separate compilation, js_of_ocaml and effects.
(executable
(name index)
(modes byte)
(js_of_ocaml (flags --target-env=nodejs --enable=effects --debug-info --source-map --pretty))
(modes js)
(js_of_ocaml (flags --enable=effects))
(libraries eio_browser))

(rule
(alias runtest)
(deps index.bc)
(targets index.bc.js)
(action (run %{bin:js_of_ocaml} -o %{targets} --enable=effects %{lib:eio_browser:runtime.js} %{dep:index.bc})))

(rule
(alias runtest)
(deps index.html index.bc.js)
Expand Down
9 changes: 2 additions & 7 deletions lib_eio_js/browser/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@
(executable
(name test)
(modules test)
(modes byte)
(modes js)
(js_of_ocaml (flags --enable=effects --setenv=ALCOTEST_COLOR=always))
(libraries alcotest ansi eio_test eio_browser))

(rule
(alias runtest)
(deps test.bc)
(targets test.bc.js)
(action (run %{bin:js_of_ocaml} -o %{targets} --enable=effects --setenv=ALCOTEST_COLOR=always %{lib:eio_browser:runtime.js} +alcotest/runtime.js %{dep:test.bc})))

(rule
(alias runtest)
(deps index.html test.bc.js)
Expand Down

0 comments on commit 5d054f7

Please sign in to comment.