Skip to content

Commit 9c4030b

Browse files
committed
Fix cross-compilation archiving step
1 parent c12e9cb commit 9c4030b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ jobs:
182182
- name: Set up Apple cross-compilation
183183
if: startsWith(matrix.build, 'cross-macos') || startsWith(matrix.build, 'cross-ios')
184184
run: |
185-
# Test with clang for now, has better cross-compilation support (GCC requires downloading a different toolchain)
185+
# Test with clang/llvm for now, has better cross-compilation support (GCC requires downloading a different toolchain)
186186
echo "CC=clang" >> $GITHUB_ENV
187187
echo "CXX=clang++" >> $GITHUB_ENV
188+
echo "AR=llvm-18-ar" >> $GITHUB_ENV
188189
# Link with rust-lld
189190
UPPERCASE_TARGET_NAME=$(echo "${{ matrix.target }}" | tr '[:lower:]-' '[:upper:]_')
190191
echo "CARGO_TARGET_${UPPERCASE_TARGET_NAME}_LINKER=rust-lld" >> $GITHUB_ENV

0 commit comments

Comments
 (0)