Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: empty string is not missing token #1157

Merged
merged 1 commit into from
May 28, 2024
Merged

Conversation

illwieckz
Copy link
Member

When CMAKE_CXX_COMPILER_ID isn't set, this line errors out because if(STREQUAL GNU) is a syntax error.

@illwieckz
Copy link
Member Author

illwieckz commented May 27, 2024

I noticed this when refactoring this code. For example the PNaCl compiler triggers this error. In the current code state, this code is never run with PNaCl and LTO is never enabled with nexe, but once we start refactoring code to be mutualized for usage with other NaCl compilers like Saigo and start toying with LTO, such error may surface.

@slipher
Copy link
Member

slipher commented May 27, 2024

LGTM

@illwieckz illwieckz merged commit 28167cb into master May 28, 2024
9 checks passed
@illwieckz illwieckz deleted the illwieckz/empty-string branch May 28, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants