Skip to content

Commit

Permalink
test: %{cma:..} of disabled lib (#10245)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed Mar 10, 2024
1 parent b5815fb commit f81def0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/blackbox-tests/test-cases/enabled_if/cma-pform.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
We try to build a disabled library using the %{cma:..} pfrom

$ cat >dune-project <<EOF
> (lang dune 3.14)
> EOF
$ cat >dune <<EOF
> (library
> (name foo)
> (enabled_if (= with-foo %{profile})))
> EOF
$ dune build %{cma:./foo}
Error: No rule found for foo.cma
-> required by %{cma:./foo} at command line:1
[1]
$ dune build --profile with-foo %{cma:./foo}

0 comments on commit f81def0

Please sign in to comment.