Skip to content

Commit 91e4183

Browse files
nmattiabasvandijk
andauthored
fix(IDX): use llvm-clang on Intel macOS (dfinity#3530)
This ensures that the x86-darwin builders use a working c compiler (llvm-clang) instead of Apple's, which causes build failures. Co-authored-by: Bas van Dijk <[email protected]>
1 parent bc3cd63 commit 91e4183

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows-source/ci-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ jobs:
189189
run: |
190190
echo "/usr/local/bin" >> $GITHUB_PATH
191191
echo "$HOME/.cargo/bin:" >> $GITHUB_PATH
192+
# use llvm-clang instead of apple's
193+
echo "CC=/usr/local/opt/llvm/bin/clang" >> "$GITHUB_ENV"
192194
- name: Run Bazel Test Darwin x86-64
193195
id: bazel-test-darwin-x86-64
194196
uses: ./.github/actions/bazel-test-all/

.github/workflows/ci-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ jobs:
181181
run: |
182182
echo "/usr/local/bin" >> $GITHUB_PATH
183183
echo "$HOME/.cargo/bin:" >> $GITHUB_PATH
184+
# use llvm-clang instead of apple's
185+
echo "CC=/usr/local/opt/llvm/bin/clang" >> "$GITHUB_ENV"
184186
- name: Run Bazel Test Darwin x86-64
185187
id: bazel-test-darwin-x86-64
186188
uses: ./.github/actions/bazel-test-all/

0 commit comments

Comments
 (0)