diff --git a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp index 081eec049e3fc..daa76b7322669 100644 --- a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp +++ b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp @@ -6,7 +6,7 @@ // UNSUPPORTED: i386-target-arch, internal_symbolizer // Does not link. -// UNSUPPORTED: darwin +// UNSUPPORTED: darwin,target={{.*solaris.*}} #include #include diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 36c40abaf1ef4..db6b4238d4906 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -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 +#endif + // Android does not have pthread_cancel. Undefine KMP_CANCEL_THREADS if being // built on Android #if defined(__ANDROID__)