From 48a0d934a36cf0b75235e3ca6f9abf68c9aeeedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 2 Jan 2023 22:10:50 +0100 Subject: [PATCH] compilerDefinitions.cmake: specify proper define for "safe libc++" (#4672) --- cmake/compilerDefinitions.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/compilerDefinitions.cmake b/cmake/compilerDefinitions.cmake index 1dddd81a2..06d2bfdb2 100644 --- a/cmake/compilerDefinitions.cmake +++ b/cmake/compilerDefinitions.cmake @@ -16,7 +16,8 @@ endif() if (CPPCHK_GLIBCXX_DEBUG AND UNIX AND CMAKE_BUILD_TYPE STREQUAL "Debug") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (USE_LIBCXX) - add_definitions(-DLIBCXX_ENABLE_DEBUG_MODE) + add_definitions(-D_LIBCPP_ENABLE_ASSERTIONS=1) + # TODO: also add _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS? endif() else() # TODO: check if this can be enabled again for Clang - also done in Makefile