Skip to content

Commit 08c1be2

Browse files
committed
Re-insert flang-rt dependency check
1 parent 035afc6 commit 08c1be2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
144144
endif()
145145
endif()
146146

147+
if ("flang-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
148+
if (NOT "flang" IN_LIST LLVM_ENABLE_PROJECTS)
149+
message(FATAL_ERROR "Flang is not enabled, but is required for the Flang-RT runtime")
150+
endif ()
151+
endif ()
152+
147153
# Select the runtimes to build
148154
#
149155
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes

0 commit comments

Comments
 (0)