Commit 368d33c 1 parent 63b7ae2 commit 368d33c Copy full SHA for 368d33c
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -330,11 +330,11 @@ sub builtinmacro {
330
330
$args [0] =~ s / $// ;
331
331
return $args [0];
332
332
}
333
- if ($macname eq ' bcond_with' ) {
333
+ if ($macname eq ' bcond_with' || ( $macname eq ' bcond ' && (! $args [1] || $args [1] eq 0)) ) {
334
334
$macros -> {" with_$args [0]" } = 1 if exists $macros -> {" _with_$args [0]" };
335
335
return ' ' ;
336
336
}
337
- if ($macname eq ' bcond_without' ) {
337
+ if ($macname eq ' bcond_without' || ( $macname eq ' bcond ' && $args [1]) ) {
338
338
$macros -> {" with_$args [0]" } = 1 unless exists $macros -> {" _without_$args [0]" };
339
339
return ' ' ;
340
340
}
@@ -404,6 +404,7 @@ my %builtin_macros = (
404
404
' undefined' => \&builtinmacro,
405
405
' with' => \&builtinmacro,
406
406
' without' => \&builtinmacro,
407
+ ' bcond' => \&builtinmacro,
407
408
' bcond_with' => \&builtinmacro,
408
409
' bcond_without' => \&builtinmacro,
409
410
' expr' => \&builtinmacro,
You can’t perform that action at this time.
0 commit comments