Skip to content

Commit 17a49c4

Browse files
authored
[Flang] Fix BUILD_SHARED_LIBS build (llvm#155422)
In contrast to linking a static library, when linking a shared library all referenced symbols must be available in either the objects files, static libraries, or shared libraries passed to the linker command line and cannot be deferred to when building the executable. Fixes llvm#150027 Same fix as included in llvm#152223, but with only the changes necessary to fix llvm#150027 (which is unrelated to GCC 15)
1 parent 2ec71d9 commit 17a49c4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

flang/lib/Optimizer/Builder/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ add_flang_library(FIRBuilder
5050
FIRDialectSupport
5151
FIRSupport
5252
FortranEvaluate
53+
FortranSupport
5354
HLFIRDialect
5455

5556
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

0 commit comments

Comments
 (0)