Skip to content

Commit

Permalink
Adding a UI for choosing cc and cxx compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mescarra committed Mar 26, 2018
1 parent 5a32bb1 commit bf7dfad
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ if [ ! -d "./cmake_build" ]; then
fi


# set up paths of clang compiler
if [ "$(uname)" == "Darwin" ]; then
CMAKE="$(greadlink -f cmake_build/bin/cmake)"

export CC=/usr/local/opt/llvm\@3.9/bin/clang
export CXX=/usr/local/opt/llvm\@3.9/bin/clang++
# set up paths of cc and cxx compiler
if [ "$1" == "gcc" ]; then
export CC="gcc"
export CXX="g++"
else
CMAKE="$(readlink -f cmake_build/bin/cmake)"
if [ "$(uname)" == "Darwin" ]; then
CMAKE="$(greadlink -f cmake_build/bin/cmake)"

export CC=/usr/local/opt/llvm\@3.9/bin/clang
export CXX=/usr/local/opt/llvm\@3.9/bin/clang++
else
CMAKE="$(readlink -f cmake_build/bin/cmake)"

export CC="clang-3.9"
export CXX="clang++-3.9"
export CC="clang-3.9"
export CXX="clang++-3.9"
fi
fi

#install EIGEN library
Expand Down

0 comments on commit bf7dfad

Please sign in to comment.