Skip to content

Commit

Permalink
Use rustup rather than installing iOS stdlibs manually
Browse files Browse the repository at this point in the history
  • Loading branch information
SSheldon committed Jun 9, 2017
1 parent d14ade0 commit 4fda032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:
matrix:
include:
- os: osx
osx_image: xcode7.2
rust: nightly
osx_image: xcode7.3
rust: stable
env: IOS_ARCHS="i386 x86_64 armv7 armv7s aarch64"
sudo: false
install: ./travis_install.sh
Expand Down
9 changes: 1 addition & 8 deletions travis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

set -eu

rust_ios_install() {
ios_stdlib="rust-std-nightly-${1}-apple-ios"
curl -O "https://static.rust-lang.org/dist/${ios_stdlib}.tar.gz"
tar xzf "${ios_stdlib}.tar.gz"
"./${ios_stdlib}/install.sh" --prefix=$(rustc --print sysroot)
}

for arch in $IOS_ARCHS; do
rust_ios_install "$arch"
rustup target add "${arch}-apple-ios"
done

if [ -n "$IOS_ARCHS" ]; then
Expand Down

0 comments on commit 4fda032

Please sign in to comment.