[clang] [llvm] workflows/release-binaries: Enable flang builds on Windows (PR #101344)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 14:08:14 PDT 2024
================
@@ -47,11 +47,17 @@ set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
set(STAGE1_PROJECTS "clang")
-set(STAGE1_RUNTIMES "")
+
+# Building Flang on Windows requires compiler-rt, so we need to build it in
+# stage1. compiler-rt is also required for building the Flang tests on
+# macOS.
+set(STAGE1_RUNTIMES "compiler-rt")
if (LLVM_RELEASE_ENABLE_PGO)
list(APPEND STAGE1_PROJECTS "lld")
- list(APPEND STAGE1_RUNTIMES "compiler-rt")
+ if (NOT "compiler-rt" IN_LIST STAGE1_RUNTIMES)
+ list(APPEND STAGE1_PROJECTS "compiler-rt")
+ endif()
----------------
nikic wrote:
Why is this bit needed?
https://github.com/llvm/llvm-project/pull/101344
More information about the llvm-commits
mailing list