Skip to content

Commit 97aeb36

Browse files
committed
Build: Use dune 3.19
1 parent 798bfd9 commit 97aeb36

File tree

20 files changed

+32
-29
lines changed

20 files changed

+32
-29
lines changed

.github/workflows/build-wasm_of_ocaml.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ jobs:
9797
- run: opam install conf-pkg-config conf-mingw-w64-gcc-i686 conf-mingw-w64-g++-x86_64
9898
if: runner.os == 'Windows'
9999

100-
- name: Pin dune
101-
if: runner.os == 'Windows'
102-
run: opam pin add -n dune https://github.com/hhugo/dune.git#jsoo-effects
103-
104-
- name: Install dune
105-
run: opam install dune
106-
107100
- name: Pin wasm_of_ocaml
108101
working-directory: ./wasm_of_ocaml
109102
run: opam pin . -n --with-version dev

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Features/Changes
44
* Misc: drop support for OCaml 4.12 and bellow
5+
* Misc: switch to dune.3.19
56
* Compiler: use a Wasm text files preprocessor (#1822)
67
* Compiler: support for OCaml 4.14.3+trunk (#1844)
78
* Compiler: optimize compilation of switches

benchmarks/benchmark-fiat-crypto/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SHELL=/bin/bash -o pipefail
66

77
bench:
88
@date -u +"%FT%TZ - $(NAME): starting"
9-
$(MAKE) perform COMPILER=js_of_ocaml EXTRA_ARGS="--enable effects" KIND=js
9+
$(MAKE) perform COMPILER=js_of_ocaml EXTRA_ARGS="--effects cps" KIND=js
1010
$(MAKE) perform COMPILER=wasm_of_ocaml EXTRA_ARGS="" KIND=wasm
1111
@date -u +"%FT%TZ - $(NAME): done"
1212

compiler/tests-dynlink-js/effects_flags.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ let () =
33
let effects_flags l =
44
match l, major >= 5 with
55
| [ "with-effects-double-translation" ], true -> [ "--effects"; "double-translation" ]
6-
| [ "with-effects" ], true -> [ "--enable"; "effects" ]
7-
| _, true -> [ "--disable"; "effects" ]
8-
| _, false -> [ "--disable"; "effects" ]
6+
| [ "with-effects" ], true -> [ "--effects"; "cps" ]
7+
| _, true -> []
8+
| _, false -> []
99
in
1010
match Sys.argv |> Array.to_list |> List.tl with
1111
| "txt" :: rest -> List.iter print_endline (effects_flags rest)

compiler/tests-jsoo/lib-effects/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(_
55
(js_of_ocaml
66
(flags
7-
(:standard --enable effects)))))
7+
(:standard --effects cps)))))
88

99
(library
1010
(name jsoo_testsuite_effect)

compiler/tests-ocaml/effect-syntax/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(_
55
(js_of_ocaml
66
(flags
7-
(:standard --enable effects)))))
7+
(:standard --effects cps)))))
88

99
(tests
1010
(names

compiler/tests-ocaml/effects/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(_
55
(js_of_ocaml
66
(flags
7-
(:standard --enable effects)))))
7+
(:standard --effects cps)))))
88

99
(tests
1010
(build_if

dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
(js_of_ocaml
1010
(compilation_mode separate)
1111
(flags
12-
(:standard --enable effects)))
12+
(:standard --effects cps)))
1313
(wasm_of_ocaml
1414
(compilation_mode separate)
1515
(flags
16-
(:standard --enable effects)))
16+
(:standard --effects cps)))
1717
(binaries
1818
(tools/node_wrapper.exe as node)
1919
(tools/node_wrapper.exe as node.exe)))

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 3.17)
1+
(lang dune 3.19)
22
(using menhir 3.0)
33
(name js_of_ocaml)
44
(generate_opam_files true)

dune-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 3.17)
1+
(lang dune 3.19)
22

33
(env
44
(_

dune-workspace.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 3.17)
1+
(lang dune 3.19)
22

33
;; Install the following opam switches, copy this file as
44
;; dune-workspace and run:

js_of_ocaml-compiler.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13" & < "5.4"}
1717
"num" {with-test}
1818
"ppx_expect" {>= "v0.16.1" & with-test}
@@ -33,6 +33,7 @@ conflicts: [
3333
"js_of_ocaml" {< "3.0"}
3434
]
3535
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
36+
x-maintenance-intent: ["(latest)"]
3637
build: [
3738
[
3839
"dune"

js_of_ocaml-lwt.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml" {= version}
1818
"js_of_ocaml-ppx" {= version}
@@ -25,6 +25,7 @@ depends: [
2525
]
2626
depopts: ["graphics" "lwt_log"]
2727
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
28+
x-maintenance-intent: ["(latest)"]
2829
build: [
2930
[
3031
"dune"

js_of_ocaml-ppx.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml" {= version}
1818
"ppxlib" {>= "0.15"}
@@ -23,6 +23,7 @@ depends: [
2323
"odoc" {with-doc}
2424
]
2525
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
26+
x-maintenance-intent: ["(latest)"]
2627
build: [
2728
[
2829
"dune"

js_of_ocaml-ppx_deriving_json.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml" {= version}
1818
"ppxlib" {>= "0.15"}
@@ -22,6 +22,7 @@ depends: [
2222
"odoc" {with-doc}
2323
]
2424
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
25+
x-maintenance-intent: ["(latest)"]
2526
build: [
2627
[
2728
"dune"

js_of_ocaml-toplevel.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml-compiler" {= version}
1818
"ocamlfind" {>= "1.5.1"}
@@ -24,6 +24,7 @@ depends: [
2424
"odoc" {with-doc}
2525
]
2626
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
27+
x-maintenance-intent: ["(latest)"]
2728
build: [
2829
[
2930
"dune"

js_of_ocaml-tyxml.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml" {= version}
1818
"js_of_ocaml-ppx" {= version}
@@ -26,6 +26,7 @@ depends: [
2626
"odoc" {with-doc}
2727
]
2828
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
29+
x-maintenance-intent: ["(latest)"]
2930
build: [
3031
[
3132
"dune"

js_of_ocaml.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.13"}
1717
"js_of_ocaml-compiler" {= version}
1818
"ppxlib" {>= "0.15"}
@@ -22,6 +22,7 @@ depends: [
2222
"odoc" {with-doc}
2323
]
2424
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
25+
x-maintenance-intent: ["(latest)"]
2526
build: [
2627
[
2728
"dune"

toplevel/examples/lwt_toplevel/effects_flags.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ let () =
33
let effects_flags l =
44
match l, major >= 5 with
55
| [ "with-effects-double-translation" ], true -> [ "--effects"; "double-translation" ]
6-
| _, true -> [ "--enable"; "effects" ]
7-
| _, false -> [ "--disable"; "effects" ]
6+
| [ "with-effects" ], true -> [ "--effects"; "cps" ]
7+
| _, true -> [ "--effects"; "cps" ]
8+
| _, false -> []
89
in
910
match Sys.argv |> Array.to_list |> List.tl with
1011
| "txt" :: rest -> List.iter print_endline (effects_flags rest)

wasm_of_ocaml-compiler.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1212
doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
15-
"dune" {>= "3.17"}
15+
"dune" {>= "3.19"}
1616
"ocaml" {>= "4.14"}
1717
"js_of_ocaml" {= version}
1818
"num" {with-test}
@@ -35,6 +35,7 @@ conflicts: [
3535
"js_of_ocaml" {< "3.0"}
3636
]
3737
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
38+
x-maintenance-intent: ["(latest)"]
3839
build: [
3940
[
4041
"dune"

0 commit comments

Comments
 (0)