We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5473b commit 1630d83Copy full SHA for 1630d83
CMakeLists.txt
@@ -20,8 +20,8 @@ else ()
20
# enable all warnings
21
set(PHOENIX_CXX_FLAGS -Wall -Wextra -Werror -Wconversion)
22
23
- # in debug mode, enable sanitizers
24
- if (${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT ${PHOENIX_DISABLE_SANITIZERS})
+ # in debug mode, enable sanitizers; note: MinGW does not seem to understand sanitizers on Windows
+ if (${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT ${PHOENIX_DISABLE_SANITIZERS} AND NOT WIN32)
25
set(PHOENIX_CXX_FLAGS ${PHOENIX_CXX_FLAGS} -fsanitize=address -fsanitize=undefined)
26
27
# when not compiling for MacOS, enable leak sanitizer
0 commit comments