From cd6b44707cefff2be90343c8c1f7e6751d5f5d01 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Sep 2022 13:23:27 +0200 Subject: Add missing if! support in recipes --- libbuild2/parser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2') 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. // // % [] [] - // [if|switch ...] + // [if|if!|switch ...] // {{ [ ...] // ... // }} @@ -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; -- cgit v1.1