Skip to content

Commit 4fda032

Browse files
committed
Use rustup rather than installing iOS stdlibs manually
1 parent d14ade0 commit 4fda032

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
matrix:
1111
include:
1212
- os: osx
13-
osx_image: xcode7.2
14-
rust: nightly
13+
osx_image: xcode7.3
14+
rust: stable
1515
env: IOS_ARCHS="i386 x86_64 armv7 armv7s aarch64"
1616
sudo: false
1717
install: ./travis_install.sh

travis_install.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22

33
set -eu
44

5-
rust_ios_install() {
6-
ios_stdlib="rust-std-nightly-${1}-apple-ios"
7-
curl -O "https://static.rust-lang.org/dist/${ios_stdlib}.tar.gz"
8-
tar xzf "${ios_stdlib}.tar.gz"
9-
"./${ios_stdlib}/install.sh" --prefix=$(rustc --print sysroot)
10-
}
11-
125
for arch in $IOS_ARCHS; do
13-
rust_ios_install "$arch"
6+
rustup target add "${arch}-apple-ios"
147
done
158

169
if [ -n "$IOS_ARCHS" ]; then

0 commit comments

Comments
 (0)