Skip to content

Commit 1630d83

Browse files
committed
cmake: don't build with sanitizers using MinGW on Windows
(cherry picked from commit eeece1a)
1 parent 1c5473b commit 1630d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ else ()
2020
# enable all warnings
2121
set(PHOENIX_CXX_FLAGS -Wall -Wextra -Werror -Wconversion)
2222

23-
# in debug mode, enable sanitizers
24-
if (${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT ${PHOENIX_DISABLE_SANITIZERS})
23+
# in debug mode, enable sanitizers; note: MinGW does not seem to understand sanitizers on Windows
24+
if (${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT ${PHOENIX_DISABLE_SANITIZERS} AND NOT WIN32)
2525
set(PHOENIX_CXX_FLAGS ${PHOENIX_CXX_FLAGS} -fsanitize=address -fsanitize=undefined)
2626

2727
# when not compiling for MacOS, enable leak sanitizer

0 commit comments

Comments
 (0)