You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the FLANG_INCLUDE_RUNTIME option which was replaced by
LLVM_ENABLE_RUNTIMES=flang-rt.
The FLANG_INCLUDE_RUNTIME option was added in #122336 which disables the
non-runtimes build instructions for the Flang runtime so they do not
conflict with the LLVM_ENABLE_RUNTIMES=flang-rt option added in #110217.
In order to not maintain multiple build instructions for the same thing,
this PR completely removes the old build instructions (effectively
forcing FLANG_INCLUDE_RUNTIME=OFF).
As per discussion in
https://discourse.llvm.org/t/buildbot-changes-with-llvm-enable-runtimes-flang-rt/83571/2
we now implicitly add LLVM_ENABLE_RUNTIMES=flang-rt whenever Flang is
compiled in a bootstrapping (non-standalone) build. Because it is
possible to build Flang-RT separately, this behavior can be disabled
using `-DFLANG_ENABLE_FLANG_RT=OFF`. Also see the discussion an
implicitly adding runtimes/projects in #123964.
option(FLANG_INCLUDE_RUNTIME "Build the runtime in-tree (deprecated; to be replaced with LLVM_ENABLE_RUNTIMES=flang-rt)"${FLANG_INCLUDE_RUNTIME_default})
267
-
if (FLANG_INCLUDE_RUNTIME)
268
-
if ("flang-rt"IN_LIST LLVM_ENABLE_RUNTIMES)
269
-
message(WARNING "Building Flang-RT using LLVM_ENABLE_RUNTIMES. FLANG_INCLUDE_RUNTIME=${FLANG_INCLUDE_RUNTIME} ignored.")
270
-
set(FLANG_INCLUDE_RUNTIME OFF)
271
-
else ()
272
-
message(STATUS"Building Flang-RT in-tree")
273
-
endif ()
274
-
else ()
275
-
if ("flang-rt"IN_LIST LLVM_ENABLE_RUNTIMES)
276
-
message(STATUS"Building Flang-RT using LLVM_ENABLE_RUNTIMES")
277
-
else ()
278
-
message(STATUS"Not building Flang-RT. For a usable Fortran toolchain, either add LLVM_ENABLE_RUNTIMES=flang-rt, or compile a standalone Flang-RT.")
279
-
endif ()
261
+
if (FLANG_STANDALONE_BUILD)
262
+
message(STATUS"Not building Flang-RT. For a usable Fortran toolchain, compile a standalone Flang-RT.")
message(STATUS"Not building Flang-RT. For a usable Fortran toolchain, either set FLANG_ENABLE_FLANG_RT=ON, add LLVM_ENABLE_RUNTIMES=flang-rt, or compile a standalone Flang-RT.")
0 commit comments