[Openmp-commits] [openmp] 94272a5 - [OpenMP] Fix libomp debug build. (#81029)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 9 08:54:17 PST 2024


Author: Daniil Fukalov
Date: 2024-02-09T17:54:14+01:00
New Revision: 94272a5a5d1549b32818805b82805e42c62ccfb4

URL: https://github.com/llvm/llvm-project/commit/94272a5a5d1549b32818805b82805e42c62ccfb4
DIFF: https://github.com/llvm/llvm-project/commit/94272a5a5d1549b32818805b82805e42c62ccfb4.diff

LOG: [OpenMP] Fix libomp debug build. (#81029)

Disable libstdc++ assertions in the runtime library just like in
https://reviews.llvm.org/D143168.

Added: 
    

Modified: 
    openmp/runtime/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index b0ecf1213dabe5..ff129feb5b6fa0 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -152,6 +152,10 @@ if(UNIX)
   set(LIBOMP_DL_LIBS ${CMAKE_DL_LIBS})
 endif()
 
+# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
+# avoid an unwanted dependency on libstdc++.so.
+add_definitions(-U_GLIBCXX_ASSERTIONS)
+
 # Add the OpenMP library
 libomp_get_ldflags(LIBOMP_CONFIGURED_LDFLAGS)
 


        


More information about the Openmp-commits mailing list