Switch off -D_GLIBCXX_DEBUG for Clang on Linux

(see 73b088a6dd for Makefile)
This commit is contained in:
Frank Zingsheim 2015-11-26 21:13:04 +01:00
parent 1d7fac3ca9
commit e5a3ba7cac
1 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
endif()
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -U_GLIBCXX_DEBUG")
endif()
include(cmake/dynamic_analyzer_options.cmake REQUIRED)
# Add user supplied extra options (optimization, etc...)