Skip to content

Commit 1256d1d

Browse files
committed
[flang] Add dependency to all runtime types to main target on Windows
This patch fixes a small bug where the new flang runtime types for Windows (static, static_dbg, etc) are not built when the FortranRuntime is requested by adding the missing dependency.
1 parent a39a28d commit 1256d1d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

flang/lib/Decimal/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,6 @@ if (DEFINED MSVC)
7575
binary-to-decimal.cpp
7676
decimal-to-binary.cpp
7777
)
78+
add_dependencies(FortranDecimal FortranDecimal.static FortranDecimal.dynamic
79+
FortranDecimal.static_dbg FortranDecimal.dynamic_dbg)
7880
endif()

flang/runtime/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,6 @@ else()
308308
LINK_LIBS
309309
FortranDecimal.dynamic_dbg
310310
INSTALL_WITH_TOOLCHAIN)
311+
add_dependencies(FortranRuntime FortranRuntime.static FortranRuntime.dynamic
312+
FortranRuntime.static_dbg FortranRuntime.dynamic_dbg)
311313
endif()

flang/runtime/FortranMain/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ if (DEFINED MSVC)
1818
add_flang_library(Fortran_main.dynamic_dbg STATIC INSTALL_WITH_TOOLCHAIN
1919
Fortran_main.c
2020
)
21+
add_dependencies(Fortran_main Fortran_main.static Fortran_main.dynamic
22+
Fortran_main.static_dbg Fortran_main.dynamic_dbg)
2123
endif()

0 commit comments

Comments
 (0)