Added environment variable for compileer

This commit is contained in:
Jose Gracia 2011-09-29 19:47:12 +00:00 committed by Christoph Niethammer
parent 3b6c7d671f
commit 2ef8665efc

View file

@ -36,7 +36,11 @@ if [ -z ${GIT_REPO} ]; then
fi fi
echo "Getting source for repository $GIT_REPO" echo "Getting source for repository $GIT_REPO"
# you *may* also specify a compiler
if [ -z ${COMPILER} ]; then
COMPILER=gnu-4.5 COMPILER=gnu-4.5
fi
if [ ${TARGET} = "hermit_cray" ]; then if [ ${TARGET} = "hermit_cray" ]; then
COMPILER=cray COMPILER=cray
TARGET=hermit TARGET=hermit
@ -59,7 +63,7 @@ fi
# load modules # load modules
if [ ${TARGET} = "laki" ]; then if [ ${TARGET} = "laki" ]; then
module load compiler/gnu/4.5 module load compiler/$(echo ${COMPILER} | sed "s,-,/,")
module use /opt/amtopt/autotools/modulefiles module use /opt/amtopt/autotools/modulefiles
module load local module load local
module load system/perfctr system/papi/4.1.2.1a module load system/perfctr system/papi/4.1.2.1a