zig/ci/travis_osx_install

20 lines
359 B
Plaintext
Raw Normal View History

2017-08-27 13:07:06 +08:00
#!/bin/sh
2017-08-27 13:25:34 +08:00
set -x
2017-08-27 13:07:06 +08:00
brew install gcc@7
brew outdated gcc@7 || brew upgrade gcc@7
2017-08-27 13:19:18 +08:00
brew link --overwrite gcc@7
2017-08-27 13:07:06 +08:00
SRC_DIR=$(pwd)
PREFIX_DIR=$HOME/local/llvm5
export CC=/usr/local/opt/gcc/bin/gcc-7
export CXX=/usr/local/opt/gcc/bin/g++-7
mkdir -p $HOME/local
cd $HOME/local
wget http://s3.amazonaws.com/superjoe/temp/llvm5.tar.xz
tar xfp llvm5.tar.xz
2017-08-27 13:07:06 +08:00
cd $SRC_DIR