Skip to content

Commit e5a3ba7

Browse files
committed
Switch off -D_GLIBCXX_DEBUG for Clang on Linux
(see 73b088a for Makefile)
1 parent 1d7fac3 commit e5a3ba7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/compileroptions.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
103103

104104
endif()
105105

106+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND
107+
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
108+
109+
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -U_GLIBCXX_DEBUG")
110+
endif()
111+
106112
include(cmake/dynamic_analyzer_options.cmake REQUIRED)
107113

108114
# Add user supplied extra options (optimization, etc...)

0 commit comments

Comments
 (0)