cmMakefile: Don't expand bracket arguments in --trace-expand

Bracket arguments are literal and shouldn't be expanded.

Fixes #21671.
This commit is contained in:
Raul Tambre
2021-01-10 12:40:56 +02:00
parent fb79784136
commit e6e7f2cab9
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ void cmMakefile::PrintCommandTrace(
args.reserve(lff.Arguments().size()); args.reserve(lff.Arguments().size());
for (cmListFileArgument const& arg : lff.Arguments()) { for (cmListFileArgument const& arg : lff.Arguments()) {
if (expand) { if (expand && arg.Delim != cmListFileArgument::Bracket) {
temp = arg.Value; temp = arg.Value;
this->ExpandVariablesInString(temp); this->ExpandVariablesInString(temp);
args.push_back(temp); args.push_back(temp);
@@ -0,0 +1 @@
set(a [[\B]])