[Openmp-commits] [openmp] [OpenMP] Fix libomp debug build. (PR #81029)
Daniil Fukalov via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 7 11:32:55 PST 2024
https://github.com/dfukalov created https://github.com/llvm/llvm-project/pull/81029
Disable libstdc++ assertions in the runtime library just like in https://reviews.llvm.org/D143168.
>From 7db4421a1210cf2504929697153b44f31439a5c1 Mon Sep 17 00:00:00 2001
From: dfukalov <1671137+dfukalov at users.noreply.github.com>
Date: Wed, 7 Feb 2024 19:12:19 +0100
Subject: [PATCH] [OpenMP] Fix libomp debug build.
Disable libstdc++ assertions in the runtime library just like in https://reviews.llvm.org/D143168.
---
openmp/runtime/src/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
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