Skip to content
Snippets Groups Projects
Commit 362134d8 authored by Bryant Mairs's avatar Bryant Mairs
Browse files

Simplify iOS builds by using Cargo's RUSTFLAGS support

parent 2e11d9e1
No related branches found
No related tags found
No related merge requests found
......@@ -68,18 +68,11 @@ if [ "$QEMU" != "" ]; then
exec grep "^PASSED .* tests" $CARGO_TARGET_DIR/out.log
fi
case "$TARGET" in
*-apple-ios)
cargo rustc --manifest-path libc-test/Cargo.toml --target $TARGET \
--test main -- -C link-args=-mios-simulator-version-min=7.0
cargo rustc --manifest-path libc-test/Cargo.toml --target $TARGET \
--test linux-fcntl -- -C link-args=-mios-simulator-version-min=7.0
;;
*)
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET --tests
;;
esac
# Build all tests making sure that the iOS builds are handled properly.
if [[ "$TARGET" == *-apple-ios ]]; then
export RUSTFLAGS="-C link-args=-mios-simulator-version-min=7.0"
fi
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET --tests
case "$TARGET" in
# Android emulator for x86_64 does not work on travis (missing hardware
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment