-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
- Loading branch information
1 parent
3f31387
commit 481f810
Showing
4 changed files
with
41 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
$ cat > dune-project <<EOF | ||
> (lang dune 3.16) | ||
> (name dune-test) | ||
> (package | ||
> (name dune-test)) | ||
> EOF | ||
|
||
$ cat > dune <<EOF | ||
> (executable | ||
> (name main) | ||
> (public_name dune_test) | ||
> (modules main) | ||
> (package dune-test) | ||
> (modes exe)) | ||
> (executable | ||
> (name main_2) | ||
> (public_name dune_test_2) | ||
> (enabled_if (= enabled %{env:MYVAR=disabled})) | ||
> (modules main_2) | ||
> (package dune-test) | ||
> (modes exe)) | ||
> EOF | ||
|
||
$ cat > main.ml <<EOF | ||
> let () = print_string "Hello world" | ||
> EOF | ||
|
||
$ MYVAR=disabled dune exec -- dune_test | ||
Hello world |
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