Skip to content

Commit c765573

Browse files
committed
Fix build on GCC 15
1 parent bd74197 commit c765573

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

flang/lib/Optimizer/Builder/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ add_flang_library(FIRBuilder
4949
FIRDialectSupport
5050
FIRSupport
5151
FortranEvaluate
52+
FortranSupport
5253
HLFIRDialect
5354

5455
MLIR_DEPS

flang/lib/Optimizer/HLFIR/Transforms/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ add_flang_library(HLFIRTransforms
2727
FIRSupport
2828
FIRTransforms
2929
FlangOpenMPTransforms
30+
FortranEvaluate
31+
FortranSupport
3032
HLFIRDialect
3133

3234
LINK_COMPONENTS

openmp/runtime/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ endif()
168168
# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
169169
# avoid an unwanted dependency on libstdc++.so.
170170
if(NOT WIN32)
171-
add_definitions(-U_GLIBCXX_ASSERTIONS)
171+
add_definitions(-U_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS)
172172
endif()
173173

174174
# Add the OpenMP library

0 commit comments

Comments
 (0)