[flang] [llvm] [openmp] Fix Debug Build Using GCC 15 (PR #152223)

Patrick Simmons via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 09:10:06 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 I can verify that `-fno-exceptions` can be removed.  `-O2` cannot, or would need to be replaced by something else, otherwise the build succeeds but the Fortran compiler cannot create executables.

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


More information about the llvm-commits mailing list