-
Notifications
You must be signed in to change notification settings - Fork 13.6k
workflows/release-binaries: Enable flang builds on Windows #101344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was fixed in 73d862e.
@llvm/pr-subscribers-clang @llvm/pr-subscribers-github-workflow Author: Tom Stellard (tstellar) ChangesThis was fixed in 73d862e. Fixes #100202. Full diff: https://github.com/llvm/llvm-project/pull/101344.diff 1 Files Affected:
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index b1b046dbad5f8..2c6f4da8facd2 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -124,16 +124,8 @@ jobs:
target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_DARWIN_osx_ARCHS=$arches -DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=$arches"
fi
- # x86 macOS and x86 Windows have trouble building flang, so disable it.
- # Windows: https://github.com/llvm/llvm-project/issues/100202
- # macOS: 'rebase opcodes terminated early at offset 1 of 80016' when building __fortran_builtins.mod
build_flang="true"
- if [ "$target" = "Windows-X64" ]; then
- target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS=\"clang;lld;lldb;clang-tools-extra;bolt;polly;mlir\""
- build_flang="false"
- fi
-
if [ "${{ runner.os }}" = "Windows" ]; then
# The build times out on Windows, so we need to disable LTO.
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
|
It looks like flang has a dependecy on compiler-rt. Fixes llvm#100202.
It looks like this change also fixed some build failures on macOS too. |
clang/cmake/caches/Release.cmake
Outdated
list(APPEND STAGE1_RUNTIMES "compiler-rt") | ||
if (NOT "compiler-rt" IN_LIST STAGE1_RUNTIMES) | ||
list(APPEND STAGE1_PROJECTS "compiler-rt") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this bit needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably not needed any more. I was planning to conditionally add compiler-rt to stage1 targets based on if flang was enabled or not, but now I think that is too complicated.
I'm going to push this tomorrow so it has a chance to land before -rc3. |
/cherry-pick 8927576 |
Flang for Windows depends on compiler-rt, so we need to enable it for the stage1 builds. This also fixes failures building the flang tests on macOS. Fixes llvm#100202. (cherry picked from commit 8927576)
/pull-request #106480 |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/3193 Here is the relevant piece of the build log for the reference
|
Flang for Windows depends on compiler-rt, so we need to enable it for the stage1 builds. This also fixes failures building the flang tests on macOS. Fixes llvm#100202. (cherry picked from commit 8927576)
Flang for Windows depends on compiler-rt, so we need to enable it for the stage1 builds. This also fixes failures building the flang tests on macOS. Fixes llvm#100202. (cherry picked from commit 8927576)
Flang for Windows depends on compiler-rt, so we need to enable it for the stage1 builds. This also fixes failures building the flang tests on macOS.
Fixes #100202.