+
Skip to content

Conversation

kou
Copy link
Contributor

@kou kou commented Mar 6, 2025

Fix #980

MSVC and GCC/Clang use different style for command line options. We should use "MSVC" not "WIN32" for detecting MSVC. If we use "WIN32", mingw-w64 also uses MSVC style command line options because "WIN32" is true for both of MSVC and mingw-w64.

Fix uber#980

MSVC and GCC/Clang use different style for command line options. We
should use "MSVC" not "WIN32" for detecting MSVC. If we use "WIN32",
mingw-w64 also uses MSVC style command line options because "WIN32" is
true for both of MSVC and mingw-w64.
@kou
Copy link
Contributor Author

kou commented Mar 6, 2025

I noticed that we have similar problems not only for ENABLE_WARNINGS but also for WARNINGS_AS_ERRORS and debug related options.

@coveralls
Copy link

Coverage Status

coverage: 98.784%. remained the same
when pulling 46112ff on kou:cmake-enable-warnings-msvc
into f530729 on uber:master.

@ajfriend ajfriend merged commit 42450ce into uber:master Mar 7, 2025
42 checks passed
@kou kou deleted the cmake-enable-warnings-msvc branch March 8, 2025 06:38
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.

Windows: Wrong condition for ENABLE_WARNINGS

5 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载