Skip to content

Commit 3574126

Browse files
committed
https://github.com/llvm/llvm-project/pull/73249
1 parent e364ddf commit 3574126

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ libomp_get_asmflags(LIBOMP_CONFIGURED_ASMFLAGS)
139139
set_source_files_properties(${LIBOMP_CXXFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_CXXFLAGS}")
140140
set_source_files_properties(${LIBOMP_ASMFILES} ${LIBOMP_GNUASMFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_ASMFLAGS}")
141141

142+
add_definitions(-U_GLIBCXX_ASSERTIONS)
143+
add_definitions(-U_LIBCPP_ENABLE_ASSERTIONS)
142144
# Remove any cmake-automatic linking of the standard C++ library.
143145
# We neither need (nor want) the standard C++ library dependency even though we compile c++ files.
144146
if(NOT ${LIBOMP_USE_STDCPPLIB})

0 commit comments

Comments
 (0)