mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 06:15:44 +01:00
Fixed "config.pl get" for options with no value
Between 2.5.0 and 2.6.0, "scripts/config.pl get MBEDTLS_XXX" was fixed for config.h lines with a comment at the end, but that broke the case of macros with an empty expansion. Support all cases.
This commit is contained in:
parent
86968c6dd1
commit
134a082455
@ -205,7 +205,7 @@ for my $line (@config_lines) {
|
|||||||
$done = 1;
|
$done = 1;
|
||||||
}
|
}
|
||||||
} elsif (!$done && $action eq "get") {
|
} elsif (!$done && $action eq "get") {
|
||||||
if ($line =~ /^\s*#define\s*$name\s*([^\s]+)\s*\b/) {
|
if ($line =~ /^\s*#define\s*$name(?:\s+(.*?))\s*(?:$|\/\*|\/\/)/) {
|
||||||
$value = $1;
|
$value = $1;
|
||||||
$done = 1;
|
$done = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user