Skip to content

release/20.x: workflows/release-binaries: Disable Flang on x86_64 macOS (#127216) #127951

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

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Feb 20, 2025

Backport 3e5ae57

Requested by: @tstellar

@llvmbot llvmbot added this to the LLVM 20.X Release milestone Feb 20, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Feb 20, 2025

@boomanaiden154 What do you think about merging this PR to the release branch?

@llvmbot
Copy link
Member Author

llvmbot commented Feb 20, 2025

@llvm/pr-subscribers-github-workflow

Author: None (llvmbot)

Changes

Backport 3e5ae57

Requested by: @tstellar


Full diff: https://github.com/llvm/llvm-project/pull/127951.diff

1 Files Affected:

  • (modified) .github/workflows/release-binaries.yml (+5)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 204ee6405382f..fa3dfa5b7d313 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -138,6 +138,11 @@ jobs:
             arches=arm64
           else
             arches=x86_64
+            # Disable Flang builds on macOS x86_64.  The FortranLower library takes
+            # 2-3 hours to build on macOS, much slower than on Linux.
+            # The long build time causes the release build to time out on x86_64,
+            # so we need to disable flang there.
+            target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;bolt;polly;mlir'"
           fi
           target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_DARWIN_osx_ARCHS=$arches -DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=$arches"
         fi

The flang build was taking 2-3 hours and causing the entire job to
timeout, so we need to disable it.

(cherry picked from commit 3e5ae57)
@tstellar tstellar merged commit 6ea0367 into llvm:release/20.x Feb 20, 2025
7 of 10 checks passed
Copy link

@tstellar (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants