Skip to content

normalize single-token compiler vars in tbb build - #261

Merged
kevinushey merged 2 commits into
masterfrom
fix-compiler-var-whitespace
Jul 24, 2026
Merged

normalize single-token compiler vars in tbb build#261
kevinushey merged 2 commits into
masterfrom
fix-compiler-var-whitespace

Conversation

@kevinushey

Copy link
Copy Markdown
Contributor

when a Makevars sets e.g. 'CXX=$(CCACHE) g++' with CCACHE empty, the value expands to ' g++' with a leading space. splitCompilerVar() would tokenize this to a single token and return early without re-setting the variable, leaving the leading space in place and forwarding an invalid '-DCMAKE_CXX_COMPILER= g++' to cmake, breaking the bundled tbb build.

re-set the compiler from the parsed tokens even when there are no trailing flags; scan() has already stripped surrounding whitespace.

when a Makevars sets e.g. 'CXX=$(CCACHE) g++' with CCACHE empty, the
value expands to ' g++' with a leading space. splitCompilerVar() would
tokenize this to a single token and return early without re-setting the
variable, leaving the leading space in place and forwarding an invalid
'-DCMAKE_CXX_COMPILER= g++' to cmake, breaking the bundled tbb build.

re-set the compiler from the parsed tokens even when there are no
trailing flags; scan() has already stripped surrounding whitespace.
@kevinushey
kevinushey merged commit 8f0f0d9 into master Jul 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant