File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,9 @@ jobs:
167
167
env :
168
168
CC : ${{ matrix.CC }}
169
169
CXX : ${{ matrix.CXX }}
170
+ - name : Install llvm tools (for llvm-ar)
171
+ if : startsWith(matrix.build, 'cross-macos') || startsWith(matrix.build, 'cross-ios')
172
+ run : sudo apt-get install llvm
170
173
- name : Download macOS SDK
171
174
if : startsWith(matrix.build, 'cross-macos')
172
175
run : |
@@ -182,9 +185,10 @@ jobs:
182
185
- name : Set up Apple cross-compilation
183
186
if : startsWith(matrix.build, 'cross-macos') || startsWith(matrix.build, 'cross-ios')
184
187
run : |
185
- # Test with clang for now, has better cross-compilation support (GCC requires downloading a different toolchain)
188
+ # Test with clang/llvm for now, has better cross-compilation support (GCC requires downloading a different toolchain)
186
189
echo "CC=clang" >> $GITHUB_ENV
187
190
echo "CXX=clang++" >> $GITHUB_ENV
191
+ echo "AR=llvm-ar" >> $GITHUB_ENV
188
192
# Link with rust-lld
189
193
UPPERCASE_TARGET_NAME=$(echo "${{ matrix.target }}" | tr '[:lower:]-' '[:upper:]_')
190
194
echo "CARGO_TARGET_${UPPERCASE_TARGET_NAME}_LINKER=rust-lld" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments