[Openmp-commits] [openmp] [OpenMP] Allow libomp.so to link in Debug build with GCC 15 libstdc++ (PR #175466)
Rainer Orth via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 12 06:41:00 PST 2026
================
@@ -48,6 +48,12 @@
#define KMP_CANCEL_THREADS
#define KMP_THREAD_ATTR
+// GCC 15 libstdc++ enables debug assertions in unoptimized builds.
+// Disable them to allow libomp.so to link without libstdc++.so.
+#if !__OPTIMIZE__
+#define GLIBCXX_NO_ASSERTIONS
----------------
rorth wrote:
That's not the issue. In fact, I'd filed Issue #153569 on August 15th, 2025, while PR #155440 was created on August 26th, 2025. So this is a duplicate which can just be dropped.
https://github.com/llvm/llvm-project/pull/175466
More information about the Openmp-commits
mailing list