Workaround to prevent loading of a default compiler module
To prevent loading a default compiler module set COMPILER="" when calling sit. Note: Sit will not take care of unloading compiler modules manually loaded by the user Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
This commit is contained in:
parent
3ff9e1617c
commit
3e7938ec65
1 changed files with 9 additions and 7 deletions
6
sit
6
sit
|
@ -102,20 +102,22 @@ sit_info "Sit class file(s): $sit_classfile"
|
||||||
|
|
||||||
# compiler to use
|
# compiler to use
|
||||||
# (gnu|intel|pgi)
|
# (gnu|intel|pgi)
|
||||||
COMPILER=${COMPILER:=${DEFAULT_COMPILER}}
|
COMPILER=${COMPILER=$DEFAULT_COMPILER}
|
||||||
sit_info_verbose "Compiler: $COMPILER"
|
sit_info_verbose "Compiler: $COMPILER"
|
||||||
# use specific compiler version
|
# use specific compiler version
|
||||||
COMPILER_VERSION=${COMPILER_VERSION:=}
|
COMPILER_VERSION=${COMPILER_VERSION:=}
|
||||||
sit_info_verbose "Compiler version: $COMPILER_VERSION"
|
sit_info_verbose "Compiler version: $COMPILER_VERSION"
|
||||||
|
|
||||||
|
|
||||||
# Compiler specifications
|
if [ ! -z ${COMPILER} ] ; then
|
||||||
|
# Compiler specifications if compiler != null
|
||||||
COMPILER_CONFIG_FILE="$SIT_PATH/etc/platform-configs/${PLATFORM}/compiler/${COMPILER}"
|
COMPILER_CONFIG_FILE="$SIT_PATH/etc/platform-configs/${PLATFORM}/compiler/${COMPILER}"
|
||||||
if [ -e $COMPILER_CONFIG_FILE ] ; then
|
if [ -e $COMPILER_CONFIG_FILE ] ; then
|
||||||
source $COMPILER_CONFIG_FILE
|
source $COMPILER_CONFIG_FILE
|
||||||
else
|
else
|
||||||
sit_fail "Could not find configuration file for compiler '${COMPILER}' on platform '${PLATFORM}'."
|
sit_fail "Could not find configuration file for compiler '${COMPILER}' on platform '${PLATFORM}'."
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
sit_info_verbose "COMPILER: $COMPILER"
|
sit_info_verbose "COMPILER: $COMPILER"
|
||||||
|
|
Loading…
Reference in a new issue