Skip to content

Commit

Permalink
Update for Xcode 6.2 clang-600.0.57 on Mac OS X 10.9 Mavericks
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilso committed Mar 16, 2015
1 parent f0212aa commit e42b72f
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions bamboo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,66 @@ darwinSetBoostMPI() {
module list
;;

clang-600.0.57)
# Use Boost and MPI built with CLANG from Xcode 5.1
module unload mpi
module unload boost

# Load other modules for clang-600.0.57
# GNU Linear Programming Kit (GLPK)
echo "bamboo.sh: Load GLPK"
module load glpk/glpk-4.54_clang-600.0.57
# System C
# echo "bamboo.sh: Load System C"
# module load systemc/systemc-2.3.0_clang-600.0.57
# METIS 5.1.0
echo "bamboo.sh: Load METIS 5.1.0"
module load metis/metis-5.1.0_clang-600.0.57
# Other misc
echo "bamboo.sh: Load libphx"
module load libphx/libphx-2014-MAY-08_clang-600.0.57

# load MPI
case $2 in
ompi_default|openmpi-1.8)
echo "OpenMPI 1.8 (openmpi-1.8) selected"
module add mpi/openmpi-1.8_clang-600.0.57
;;
*)
echo "Default MPI option, loading mpi/openmpi-1.8"
module load mpi/openmpi-1.8_clang-600.0.57 2>catch.err
if [ -s catch.err ]
then
cat catch.err
exit 0
fi
;;
esac

# load corresponding Boost
case $3 in
boost_default|boost-1.56)
echo "Boost 1.56 selected"
module add boost/boost-1.56.0_ompi-1.8_clang-600.0.57
;;
*)
echo "bamboo.sh: \"Default\" Boost selected"
echo "Third argument was $3"
echo "Loading boost/Boost 1.56"
module load boost/boost-1.56.0_ompi-1.8_clang-600.0.57 2>catch.err
if [ -s catch.err ]
then
cat catch.err
exit 0
fi
;;
esac
export CC=`which clang`
export CXX=`which clang++`
module list
;;


*)
# unknown compiler, use default
echo "bamboo.sh: Unknown compiler selection. Assuming gcc."
Expand Down

0 comments on commit e42b72f

Please sign in to comment.