Skip to content
Snippets Groups Projects
Commit c70bd97e authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Commenting unnecessary (?) arguments.

parent 6479b7ef
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
...@@ -4,7 +4,7 @@ if [ ! -e ${SPACK_ROOT} ]; then ...@@ -4,7 +4,7 @@ if [ ! -e ${SPACK_ROOT} ]; then
git clone ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT} git clone ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
fi fi
_init_spack _init_spack ${}
if [[ $(spack compiler info ${SPACK_COMPILER}) ]]; then if [[ $(spack compiler info ${SPACK_COMPILER}) ]]; then
echo "Found Compiler $(spack compiler info ${SPACK_COMPILER})" echo "Found Compiler $(spack compiler info ${SPACK_COMPILER})"
...@@ -16,8 +16,8 @@ fi ...@@ -16,8 +16,8 @@ fi
} }
function _init_spack() { function _init_spack() {
SPACK_INIT_CMD=$1 #SPACK_INIT_CMD=$1
SPACK_ROOT=$2 #SPACK_ROOT=$2
if [ -z "$SPACK_INIT_CMD" ] && [ ! -z "${SPACK_ROOT}" ]; then if [ -z "$SPACK_INIT_CMD" ] && [ ! -z "${SPACK_ROOT}" ]; then
echo "Empty SPACK_INIT_CMD -> trying to source config file of spack root: $SPACK_ROOT/share/spack/setup-env.sh" echo "Empty SPACK_INIT_CMD -> trying to source config file of spack root: $SPACK_ROOT/share/spack/setup-env.sh"
. $SPACK_ROOT/share/spack/setup-env.sh . $SPACK_ROOT/share/spack/setup-env.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment