[OpenMP] Fix libomp debug build. (#81029)

Disable libstdc++ assertions in the runtime library just like in
https://reviews.llvm.org/D143168.

GitOrigin-RevId: 94272a5a5d1549b32818805b82805e42c62ccfb4
diff --git a/runtime/src/CMakeLists.txt b/runtime/src/CMakeLists.txt
index b0ecf12..ff129fe 100644
--- a/runtime/src/CMakeLists.txt
+++ b/runtime/src/CMakeLists.txt
@@ -152,6 +152,10 @@
   set(LIBOMP_DL_LIBS ${CMAKE_DL_LIBS})
 endif()
 
+# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
+# avoid an unwanted dependency on libstdc++.so.
+add_definitions(-U_GLIBCXX_ASSERTIONS)
+
 # Add the OpenMP library
 libomp_get_ldflags(LIBOMP_CONFIGURED_LDFLAGS)