[flang-commits] [flang] [llvm] [openmp] Fix Debug Build Using GCC 15 (PR #152223)
Patrick Simmons via flang-commits
flang-commits at lists.llvm.org
Tue Aug 26 10:07:47 PDT 2025
================
@@ -183,6 +183,10 @@ endif ()
if (NOT WIN32)
+ add_definitions(-U_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS)
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>)
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-O2>)
----------------
linuxrocks123 wrote:
@Meinersbur
Re 2: A suggested alternative syntax would be helpful in understanding what you are suggesting.
Re 3: I don't like forcing `-O2` either, but I don't see an alternative to making the DCE happen that's necessary to get rid of the offending undefined symbol.
https://github.com/llvm/llvm-project/pull/152223
More information about the flang-commits
mailing list