File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,11 @@ if [ "$QEMU" != "" ]; then
68
68
exec grep " ^PASSED .* tests" $CARGO_TARGET_DIR /out.log
69
69
fi
70
70
71
- case " $TARGET " in
72
- * -apple-ios)
73
- cargo rustc --manifest-path libc-test/Cargo.toml --target $TARGET \
74
- --test main -- -C link-args=-mios-simulator-version-min=7.0
75
- cargo rustc --manifest-path libc-test/Cargo.toml --target $TARGET \
76
- --test linux-fcntl -- -C link-args=-mios-simulator-version-min=7.0
77
- ;;
78
-
79
- * )
80
- cargo build --manifest-path libc-test/Cargo.toml --target $TARGET --tests
81
- ;;
82
- esac
71
+ # Build all tests making sure that the iOS builds are handled properly.
72
+ if [[ " $TARGET " == * -apple-ios ]]; then
73
+ export RUSTFLAGS=" -C link-args=-mios-simulator-version-min=7.0"
74
+ fi
75
+ cargo build --manifest-path libc-test/Cargo.toml --target $TARGET --tests
83
76
84
77
case " $TARGET " in
85
78
# Android emulator for x86_64 does not work on travis (missing hardware
You can’t perform that action at this time.
0 commit comments