-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't add rules if lib stanza is disabled
Signed-off-by: Javier Chávarri <javier.chavarri@gmail.com>
- Loading branch information
Showing
8 changed files
with
100 additions
and
115 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
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
32 changes: 32 additions & 0 deletions
32
test/blackbox-tests/test-cases/enabled_if/eif-library-cmo-disabled.t
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,32 @@ | ||
Test behavior when targeting artifacts of a disabled library | ||
|
||
$ mkdir -p a b | ||
$ cat > dune-project << EOF | ||
> (lang dune 3.13) | ||
> EOF | ||
$ cat > dune << EOF | ||
> (library | ||
> (name foo) | ||
> (enabled_if false)) | ||
> EOF | ||
$ cat > foo.ml <<EOF | ||
> let x = "foo" | ||
> EOF | ||
$ dune build %{cmo:foo} --display=verbose | ||
Shared cache: disabled | ||
Shared cache location: /home/me/.cache/dune/db | ||
Workspace root: | ||
$TESTCASE_ROOT | ||
Dune context: | ||
{ name = "default" | ||
; kind = "default" | ||
; profile = Dev | ||
; merlin = true | ||
; fdo_target_exe = None | ||
; build_dir = In_build_dir "default" | ||
; installed_env = map {} | ||
; instrument_with = [] | ||
} | ||
File "command line", line 1, characters 0-10: | ||
Error: Module Foo does not exist. | ||
[1] |
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