91536813ec
* try some macos travis stuff * put c in the link libs for macos since we always link with libSystem * for non-native targets on macos, allow runtime symbol resolution - it's causing an infinite loop in LLD. * for macos, always build compiler_rt and turn on LinkOnce because compiler_rt on darwin is missing some stuff.
20 lines
359 B
Bash
Executable File
20 lines
359 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
brew install gcc@7
|
|
brew outdated gcc@7 || brew upgrade gcc@7
|
|
brew link --overwrite gcc@7
|
|
|
|
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
|
|
|
|
cd $SRC_DIR
|