[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:25:34 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:

There is a cmake define for the version with underscore: https://github.com/llvm/llvm-project/blob/main/openmp/runtime/src/CMakeLists.txt#L171
I'm wondering whether the gnu C++ headers for **solaris** probably test for the variable without underscores. Can you possibly grep in the C++ headers on your solaris system for the variable?

https://github.com/llvm/llvm-project/pull/175466


More information about the Openmp-commits mailing list