Commit 23f275c
committed
executables: Allow any vars in enabled_if for executables
We allow any vars in enabled_if within the library stanza, but only
common_vars within the executable stanza. This commit fixes that and
allows any vars within the executable stanza too. The dune lang version
would need to be bumped for this to work, though.
Signed-off-by: Puneeth Chaganti <punchagan@muse-amuse.in>1 parent 0e68eb2 commit 23f275c
2 files changed
Lines changed: 9 additions & 15 deletions
File tree
- src/dune_rules/stanzas
- test/blackbox-tests/test-cases/enabled_if/enabled_if-exec-read.t
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
| |||
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 31 | + | |
38 | 32 | | |
39 | 33 | | |
40 | 34 | | |
41 | 35 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 36 | + | |
48 | 37 | | |
0 commit comments