Added fallback platform and default compiler to config file.
This commit is contained in:
parent
d4f1c488a3
commit
9af6785a4b
2 changed files with 9 additions and 2 deletions
|
@ -13,3 +13,9 @@ SCLASS_DIR=${SCLASS_DIR:="$SIT_PATH/packages"}
|
||||||
PREFIX_BASE=${PREFIX_BASE:="$HOME/bin"}
|
PREFIX_BASE=${PREFIX_BASE:="$HOME/bin"}
|
||||||
|
|
||||||
MAKEOPTS="-j2"
|
MAKEOPTS="-j2"
|
||||||
|
|
||||||
|
# default platform for unknown platforms
|
||||||
|
DEFAULT_PLATFORM="laki"
|
||||||
|
|
||||||
|
# default compiler
|
||||||
|
DEFAULT_COMPILER="system"
|
||||||
|
|
5
sit
5
sit
|
@ -27,7 +27,8 @@ case $HOSTNAME in
|
||||||
PLATFORM="hermit"
|
PLATFORM="hermit"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
sit_fail "Unknown host $HOSTNAME"
|
sit_info "Unknown host '$HOSTNAME' using default platform '${DEFAULT_PLATFORM}' configuration"
|
||||||
|
PLATFORM="${DEFAULT_PLATFORM}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ sit_info "Platform: $PLATFORM"
|
||||||
|
|
||||||
# compiler to use
|
# compiler to use
|
||||||
# (gnu|intel|pgi)
|
# (gnu|intel|pgi)
|
||||||
COMPILER=${COMPILER:=system}
|
COMPILER=${COMPILER:=${DEFAULT_COMPILER}}
|
||||||
# use specific compiler version
|
# use specific compiler version
|
||||||
COMPILER_VERSION=${COMPILER_VERSION:=}
|
COMPILER_VERSION=${COMPILER_VERSION:=}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue