Skip to content

Commit d27fb75

Browse files
committed
Allow non-zero exit code after running buildsystem/clang-hip/frontierVariables.sh on Frontier.
1 parent 9926954 commit d27fb75

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

buildsystem/build.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,16 @@ module purge
221221
varfile="$SRCDIR/buildsystem/$JOB/$(echo $MY_CLUSTER)Variables.sh"
222222

223223
if [[ -f "$varfile" ]]; then
224-
source $varfile || { echo "Could not source $varfile"; exit 1; }
224+
source $varfile
225+
if [ $? ]; then
226+
if [[ $MY_CLUSTER==frontier ]]; then
227+
echo "Allowing non-zero exit code for $varfile."
228+
echo "Frontier modules are currently generating warnings that will go away in future updates."
229+
else
230+
echo "Could not source $varfile";
231+
exit 1;
232+
fi
233+
fi
225234
fi
226235

227236
# module list

0 commit comments

Comments
 (0)