From 72d1a074dfed9f7eaba97aaa3129fff99b924581 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 16 Jul 2013 11:58:08 +0800 Subject: [PATCH] Updating travis-script/before-install.sh, install gcc4.7 when build linux port. --- tools/travis-scripts/before-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/travis-scripts/before-install.sh b/tools/travis-scripts/before-install.sh index d764e0735a..c08f5ebc70 100755 --- a/tools/travis-scripts/before-install.sh +++ b/tools/travis-scripts/before-install.sh @@ -94,7 +94,12 @@ if [ "$GEN_JSB"x = "YES"x ]; then install_android_ndk install_llvm elif [ "$PLATFORM"x = "linux"x ]; then + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt-get update + sudo apt-get install gcc-4.7 g++-4.7 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 90 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 + g++ --version bash $COCOS2DX_ROOT/install-deps-linux.sh elif [ "$PLATFORM"x = "nacl"x ]; then install_nacl_sdk