Skip to content

Commit

Permalink
update setup.h for Mac
Browse files Browse the repository at this point in the history
The old setup.sh file contained an installation for llvm 5.0 that did not work for Mac. I have updated the related formula and c and c++ compiler
  • Loading branch information
amritas02 authored May 30, 2018
1 parent 361b538 commit 70b8b48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ if [ "$(uname)" == "Darwin" ]; then # osx

#below takes way too long
# brew install [email protected]
brew install --force-bottle [email protected]
brew tap llvm-hs/homebrew-llvm
brew install llvm-5.0

brew install wget
brew install coreutils

export C_COMPILER=/usr/local/opt/llvm\@5.09/bin/clang
export COMPILER=/usr/local/opt/llvm\@5.0/bin/clang++
export C_COMPILER=/usr/local/opt/llvm-5.0/bin/clang-5.0
export COMPILER=/usr/local/opt/llvm-5.0/bin/clang++-5.0
else #linux
if [[ ! -z "${whoami}" ]]; then #this happens when running in travis
sudo /usr/sbin/useradd -G dialout $USER
Expand Down

0 comments on commit 70b8b48

Please sign in to comment.