aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-02 13:23:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-02 13:23:27 +0200
commitcd6b44707cefff2be90343c8c1f7e6751d5f5d01 (patch)
treed2cfbd1f8f934ecde0d4ed5bc5977ef72f0ca82c
parentf20b58185166582875511aac2e10f9ca05f13b92 (diff)
Add missing if! support in recipes
-rw-r--r--libbuild2/parser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index da017d3..00366e6 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1701,7 +1701,7 @@ namespace build2
// Parse a recipe chain.
//
// % [<attrs>] [<buildspec>]
- // [if|switch ...]
+ // [if|if!|switch ...]
// {{ [<lang> ...]
// ...
// }}
@@ -2090,7 +2090,7 @@ namespace build2
// handy if we want to provide a custom recipe but only on certain
// platforms or some such).
- if (n == "if")
+ if (n == "if" || n == "if!")
{
parse_if_else (t, tt, true /* multi */, parse_block);
continue;