Added fallback platform and default compiler to config file.

This commit is contained in:
Christoph Niethammer 2011-07-07 16:35:51 +00:00
parent d4f1c488a3
commit 9af6785a4b
2 changed files with 9 additions and 2 deletions

View file

@ -13,3 +13,9 @@ SCLASS_DIR=${SCLASS_DIR:="$SIT_PATH/packages"}
PREFIX_BASE=${PREFIX_BASE:="$HOME/bin"}
MAKEOPTS="-j2"
# default platform for unknown platforms
DEFAULT_PLATFORM="laki"
# default compiler
DEFAULT_COMPILER="system"

5
sit
View file

@ -27,7 +27,8 @@ case $HOSTNAME in
PLATFORM="hermit"
;;
*)
sit_fail "Unknown host $HOSTNAME"
sit_info "Unknown host '$HOSTNAME' using default platform '${DEFAULT_PLATFORM}' configuration"
PLATFORM="${DEFAULT_PLATFORM}"
;;
esac
@ -35,7 +36,7 @@ sit_info "Platform: $PLATFORM"
# compiler to use
# (gnu|intel|pgi)
COMPILER=${COMPILER:=system}
COMPILER=${COMPILER:=${DEFAULT_COMPILER}}
# use specific compiler version
COMPILER_VERSION=${COMPILER_VERSION:=}