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 ecefe0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:

- run: opam install ${{ matrix.local-packages }} --deps-only --with-test

- run: opam exec -- dune build
- run: opam exec -- dune build --only-packages ${{ matrix.local-packages }}

- run: opam exec -- dune runtest
- run: opam exec -- dune runtest --only-packages ${{ matrix.local-packages }}
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 ecefe0e

Please sign in to comment.