Only install gcc-multilib when necessary
diff --git a/.travis.yml b/.travis.yml
index bda94c1..e34b284 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,10 +34,6 @@
- os: linux
env: TARGET=aarch64-unknown-linux-gnu
rust: nightly-2015-09-08
-addons:
- apt:
- packages:
- - gcc-multilib
notifications:
email:
on_success: never
diff --git a/ci/run-travis.sh b/ci/run-travis.sh
index db01aae..5abf23f 100644
--- a/ci/run-travis.sh
+++ b/ci/run-travis.sh
@@ -57,6 +57,10 @@
# clang has better error messages and implements alignof more broadly
export CC=clang
+
+ if [ "$TARGET" = "i686-unknown-linux-gnu" ]; then
+ sudo apt-get install gcc-multilib
+ fi
fi
mkdir .cargo