Skip to content

Commit 9b998e9

Browse files
committed
[try with Homebrew clang]
1 parent 3387131 commit 9b998e9

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/actions/1-setup/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,14 @@ runs:
4949
sudo ln -sf $tool-19 /usr/bin/$tool
5050
$tool --version
5151
done
52-
- name: 'macOS arm64: Install clang 19 from GitHub' # see mimalloc comment in ../3-build-native/action.yml
52+
- name: 'macOS arm64: Install clang 19' # see mimalloc comment in ../3-build-native/action.yml
5353
if: runner.os == 'macOS' && inputs.arch == 'arm64'
5454
shell: bash
5555
run: |
5656
set -eux
5757
cd ..
58-
curl -fL --retry 3 --max-time 300 -o clang.tar.xz \
59-
https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/LLVM-19.1.7-macOS-ARM64.tar.xz
60-
mkdir clang
61-
tar -xf clang.tar.xz --strip 1 -C clang
62-
rm clang.tar.xz
6358
# also upgrade CMake to v4
64-
brew install cmake
59+
brew install llvm@19 cmake
6560
cmake --version
6661
- name: 'Windows: Install clang v19.1.3 from GitHub'
6762
if: runner.os == 'Windows'

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ jobs:
8585
os: macos-14
8686
arch: arm64
8787
extra_cmake_flags: >-
88-
-DCMAKE_C_COMPILER=$PWD/../clang/bin/clang
89-
-DCMAKE_CXX_COMPILER=$PWD/../clang/bin/clang++
88+
-DCMAKE_C_COMPILER=$(brew --prefix llvm@19)/bin/clang
89+
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm@19)/bin/clang++
9090
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
9191
-DEXTRA_CXXFLAGS=-flto=full
9292
with_pgo: true

0 commit comments

Comments
 (0)