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 baa5586 commit bfd949e
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 @@ -13,8 +13,8 @@ matrix:
rust: stable
env: FEATURES="exception verify_message" IOS_ARCHS=""
- os: osx
osx_image: xcode7.2
rust: 1.9.0
osx_image: xcode7.3
rust: stable
env: FEATURES="exception" 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,13 +2,6 @@

set -eu

rust_ios_install() {
ios_stdlib="rust-std-1.9.0-${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)
}

gnustep_install() {
git clone https://github.com/gnustep/libobjc2.git
mkdir libobjc2/build
Expand All @@ -20,7 +13,7 @@ gnustep_install() {
}

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 bfd949e

Please sign in to comment.