Skip to content

Commit

Permalink
qmake/cmake enabled C/C++ conformant preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed May 22, 2024
1 parent e3dd91d commit 1f34fcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmake/CommonModules/TinyCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ ${TINY_UNPARSED_ARGUMENTS}")
/Zc:__cplusplus
# Standards-conforming behavior
/Zc:strictStrings
# # C/C++ conformant preprocessor
/Zc:preprocessor
# Enable Additional Security Checks for Debug builds only
$<$<CONFIG:Debug>:/sdl>
/W4
Expand Down
3 changes: 2 additions & 1 deletion qmake/common/winconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ win32-msvc|win32-clang-msvc {
# ---

win32-msvc {
QMAKE_CXXFLAGS += -guard:cf -bigobj
# C/C++ conformant preprocessor
QMAKE_CXXFLAGS += -guard:cf -bigobj -Zc:preprocessor
QMAKE_CXXFLAGS_WARN_ON = -external:anglebrackets -external:W0 -W4 -wd4702
# Enable and check it from time to time
# -external:templates-
Expand Down

0 comments on commit 1f34fcd

Please sign in to comment.