[Openmp-commits] [openmp] [OpenMP] Remove unwanted dependency on libstdc++ for libomp (PR #73249)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 23 21:00:22 PST 2023
================
@@ -135,6 +135,11 @@ libomp_get_asmflags(LIBOMP_CONFIGURED_ASMFLAGS)
set_source_files_properties(${LIBOMP_CXXFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_CXXFLAGS}")
set_source_files_properties(${LIBOMP_ASMFILES} ${LIBOMP_GNUASMFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_ASMFLAGS}")
+# Disable libstdc++/libc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build,
+# to avoid an unwanted dependency on libstdc++/libc++.so.
+add_definitions(-U_GLIBCXX_ASSERTIONS)
----------------
shiltian wrote:
How about `add_compile_definitions`?
https://github.com/llvm/llvm-project/pull/73249
More information about the Openmp-commits
mailing list