Skip to content

Commit

Permalink
Work around (enabled_if ...) not working properly in dune
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic authored and talex5 committed Feb 27, 2023
1 parent cb2aaf5 commit a316a72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib_eio_linux/tests/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
(* -*- tuareg -*- *)

let linux = List.mem ("system", "linux") Jbuild_plugin.V1.ocamlc_config

let () = Jbuild_plugin.V1.send @@ if not linux then "" else {|

(library
(name eurcp_lib)
(enabled_if (= %{system} "linux"))
Expand Down Expand Up @@ -33,3 +39,4 @@
(package eio_linux)
(enabled_if (= %{system} "linux"))
(deps (package eio_linux)))
|}

0 comments on commit a316a72

Please sign in to comment.