[llvm-branch-commits] [llvm] release/20.x: workflows/release-binaries: Disable Flang on x86_64 macOS (#127216) (PR #127951)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 20 13:01:58 PST 2025
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/127951
>From 6ea0367372362e50ddaa6ec51a502c1ca19d26d7 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 19 Feb 2025 19:16:30 -0800
Subject: [PATCH] workflows/release-binaries: Disable Flang on x86_64 macOS
(#127216)
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 3e5ae5777d92b6f8c647c3f6969fbca0f0f769ff)
---
.github/workflows/release-binaries.yml | 5 +++++
1 file changed, 5 insertions(+)
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
More information about the llvm-branch-commits
mailing list