Skip to content

Commit f69ba32

Browse files
authored
Merge pull request #582 from talex5/build-if
Simplify dune files with dune 3.9's build_if
2 parents 7251db6 + 733f71f commit f69ba32

File tree

8 files changed

+8
-24
lines changed

8 files changed

+8
-24
lines changed

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 3.7)
1+
(lang dune 3.9)
22
(name eio)
33
(formatting disabled)
44
(generate_opam_files true)

eio.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
99
doc: "https://ocaml-multicore.github.io/eio/"
1010
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
1111
depends: [
12-
"dune" {>= "3.7"}
12+
"dune" {>= "3.9"}
1313
"ocaml" {>= "5.0.0"}
1414
"bigstringaf" {>= "0.9.0"}
1515
"cstruct" {>= "6.0.1"}

eio_linux.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
99
doc: "https://ocaml-multicore.github.io/eio/"
1010
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
1111
depends: [
12-
"dune" {>= "3.7"}
12+
"dune" {>= "3.9"}
1313
"alcotest" {>= "1.4.0" & with-test}
1414
"eio" {= version}
1515
"mdx" {>= "2.2.0" & with-test}

eio_main.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
99
doc: "https://ocaml-multicore.github.io/eio/"
1010
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
1111
depends: [
12-
"dune" {>= "3.7"}
12+
"dune" {>= "3.9"}
1313
"mdx" {>= "2.2.0" & with-test}
1414
"kcas" {>= "0.3.0" & with-test}
1515
"yojson" {>= "2.0.2" & with-test}

eio_posix.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
99
doc: "https://ocaml-multicore.github.io/eio/"
1010
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
1111
depends: [
12-
"dune" {>= "3.7"}
12+
"dune" {>= "3.9"}
1313
"eio" {= version}
1414
"iomux" {>= "0.2"}
1515
"mdx" {>= "2.2.0" & with-test}

eio_windows.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/ocaml-multicore/eio"
99
doc: "https://ocaml-multicore.github.io/eio/"
1010
bug-reports: "https://github.com/ocaml-multicore/eio/issues"
1111
depends: [
12-
"dune" {>= "3.7"}
12+
"dune" {>= "3.9"}
1313
"eio" {= version}
1414
"kcas" {>= "0.3.0" & with-test}
1515
"alcotest" {>= "1.4.0" & with-test}

lib_eio_linux/tests/dune

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
(* -*- tuareg -*- *)
2-
3-
let linux = List.mem ("system", "linux") Jbuild_plugin.V1.ocamlc_config
4-
5-
let () = Jbuild_plugin.V1.send @@ if not linux then "" else {|
6-
71
(library
82
(name eurcp_lib)
93
(enabled_if (= %{system} "linux"))
@@ -31,13 +25,11 @@ let () = Jbuild_plugin.V1.send @@ if not linux then "" else {|
3125
(test
3226
(name test)
3327
(package eio_linux)
34-
(enabled_if (= %{system} "linux"))
28+
(build_if (= %{system} "linux"))
3529
(modules test)
3630
(libraries alcotest eio_linux))
3731

3832
(mdx
3933
(package eio_linux)
4034
(enabled_if (= %{system} "linux"))
4135
(deps (package eio_linux)))
42-
43-
|}

lib_eio_windows/test/dune

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
(* -*- tuareg -*- *)
2-
3-
let win32 = List.mem ("os_type", "Win32") Jbuild_plugin.V1.ocamlc_config
4-
5-
let () = Jbuild_plugin.V1.send @@ if not win32 then "" else {|
6-
71
(test
82
(name test)
93
(package eio_windows)
10-
(enabled_if (= %{os_type} "Win32"))
4+
(build_if (= %{os_type} "Win32"))
115
(libraries alcotest kcas eio.mock eio_windows))
12-
13-
|}

0 commit comments

Comments
 (0)