Skip to content

Commit 839fb38

Browse files
committed
Don't run cargo-hack for iOS
cargo-hack tries to run some rustc command that needs the iphonesimulator SDK for iOS. Just skip it.
1 parent 12158cf commit 839fb38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.cirrus.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ build: &BUILD
2020
- $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
2121
- $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
2222
- $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- $CLIPPYFLAGS
23-
- $TOOL install cargo-hack
24-
- $TOOL hack check --target $TARGET --each-feature
23+
- [ -n "$NOHACK" ] || $TOOL install cargo-hack
24+
- [ -n "$NOHACK" ] || $TOOL hack check --target $TARGET --each-feature
2525

2626
# Tests that do require executing the binaries
2727
test: &TEST
@@ -196,13 +196,17 @@ task:
196196
# https://github.com/rust-embedded/cross/issues/535
197197
- name: iOS aarch64
198198
env:
199+
# cargo hack tries to invoke the iphonesimulator SDK for iOS
200+
NOHACK: 1
199201
TARGET: aarch64-apple-ios
200202
# Rustup only supports cross-building from arbitrary hosts for iOS at
201203
# 1.49.0 and above. Below that it's possible to cross-build from an OSX
202204
# host, but OSX VMs are more expensive than Linux VMs.
203205
TOOLCHAIN: 1.49.0
204206
- name: iOS x86_64
205207
env:
208+
# cargo hack tries to invoke the iphonesimulator SDK for iOS
209+
NOHACK: 1
206210
TARGET: x86_64-apple-ios
207211
TOOLCHAIN: 1.49.0
208212
# Cross testing on powerpc fails with "undefined reference to renameat2".

0 commit comments

Comments
 (0)