[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 05:14:57 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:
I could've sworn that I tested this. Apparently not, and it's too long ago that I ran into this and wrote the patch. Is the patch still ok with that fixed and tested for real?
https://github.com/llvm/llvm-project/pull/175466
More information about the Openmp-commits
mailing list