Skip to content

Commit 48a0d93

Browse files
authored
compilerDefinitions.cmake: specify proper define for "safe libc++" (#4672)
1 parent 41b5f45 commit 48a0d93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmake/compilerDefinitions.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ endif()
1616
if (CPPCHK_GLIBCXX_DEBUG AND UNIX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
1717
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
1818
if (USE_LIBCXX)
19-
add_definitions(-DLIBCXX_ENABLE_DEBUG_MODE)
19+
add_definitions(-D_LIBCPP_ENABLE_ASSERTIONS=1)
20+
# TODO: also add _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS?
2021
endif()
2122
else()
2223
# TODO: check if this can be enabled again for Clang - also done in Makefile

0 commit comments

Comments
 (0)