-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #749 from emillon/build-if
dune: use build_if instead of workaround
- Loading branch information
Showing
6 changed files
with
5 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(lang dune 2.9) | ||
(lang dune 3.9) | ||
(name ctypes) | ||
(version 0.23.0) | ||
(formatting (enabled_for dune)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
(* -*- tuareg -*- *) | ||
|
||
(* This can be ported to build_if once available, ocaml/dune#7899 *) | ||
|
||
let unix = List.mem ("os_type", "Unix") Jbuild_plugin.V1.ocamlc_config | ||
|
||
let () = Jbuild_plugin.V1.send @@ if not unix then "" else {| | ||
(test | ||
(name fts_cmd) | ||
(enabled_if | ||
(build_if | ||
(= %{os_type} Unix)) | ||
(libraries fts_stubs fts_generated) | ||
(package ctypes) | ||
(action (progn)) | ||
(link_flags | ||
:standard | ||
(:include config/c_library_flags.sexp))) | ||
|} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters