[clang] 6d54a5e - workflows/release-binaries: Disable flang on Darwin (#164667)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 27 08:32:04 PDT 2025
Author: Tom Stellard
Date: 2025-10-27T08:31:59-07:00
New Revision: 6d54a5e5b83ce3502b7a3488fea5afe1c8bf9c5c
URL: https://github.com/llvm/llvm-project/commit/6d54a5e5b83ce3502b7a3488fea5afe1c8bf9c5c
DIFF: https://github.com/llvm/llvm-project/commit/6d54a5e5b83ce3502b7a3488fea5afe1c8bf9c5c.diff
LOG: workflows/release-binaries: Disable flang on Darwin (#164667)
The tests are failing due to
https://github.com/llvm/llvm-project/issues/160546
---------
Co-authored-by: Cullen Rhodes <cullen.rhodes at arm.com>
Added:
Modified:
.github/workflows/release-binaries.yml
clang/cmake/caches/Release.cmake
Removed:
################################################################################
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 512eacc689c02..8145926265256 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -132,11 +132,6 @@ 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;polly;mlir'"
fi
target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_ARCHS=$arches -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=$arches"
fi
diff --git a/clang/cmake/caches/Release.cmake b/clang/cmake/caches/Release.cmake
index 82bfdc0cfd565..25f7970119d07 100644
--- a/clang/cmake/caches/Release.cmake
+++ b/clang/cmake/caches/Release.cmake
@@ -30,12 +30,18 @@ endfunction()
#
# cmake -D LLVM_RELEASE_ENABLE_PGO=ON -C Release.cmake
-set (DEFAULT_PROJECTS "clang;lld;lldb;clang-tools-extra;polly;mlir;flang")
+set (DEFAULT_PROJECTS "clang;lld;lldb;clang-tools-extra;polly;mlir")
# bolt only supports ELF, so only enable it for Linux.
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
list(APPEND DEFAULT_PROJECTS "bolt")
endif()
+# Don't build flang on Darwin due to:
+# https://github.com/llvm/llvm-project/issues/160546
+if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
+ list(APPEND DEFAULT_PROJECTS "flang")
+endif()
+
set (DEFAULT_RUNTIMES "compiler-rt;libcxx")
if (NOT WIN32)
list(APPEND DEFAULT_RUNTIMES "libcxxabi" "libunwind")
More information about the cfe-commits
mailing list