[Openmp-commits] [openmp] [OpenMP] Allow libomp.so to link in Debug build with GCC 15 libstdc++ (PR #175466)
via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 12 05:01:27 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
----------------
jprotze wrote:
Ups, just realized that the define is missing the leading underscore `_GLIBCXX_NO_ASSERTIONS`
https://github.com/llvm/llvm-project/pull/175466
More information about the Openmp-commits
mailing list