Skip to content

Commit 94272a5

Browse files
authored
[OpenMP] Fix libomp debug build. (#81029)
Disable libstdc++ assertions in the runtime library just like in https://reviews.llvm.org/D143168.
1 parent 1245f5f commit 94272a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ if(UNIX)
152152
set(LIBOMP_DL_LIBS ${CMAKE_DL_LIBS})
153153
endif()
154154

155+
# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
156+
# avoid an unwanted dependency on libstdc++.so.
157+
add_definitions(-U_GLIBCXX_ASSERTIONS)
158+
155159
# Add the OpenMP library
156160
libomp_get_ldflags(LIBOMP_CONFIGURED_LDFLAGS)
157161

0 commit comments

Comments
 (0)