Skip to content

Commit

Permalink
force to exit if requested gcc is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
uturuncoglu committed Aug 14, 2023
1 parent a99ca75 commit 4d88abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/spack_concretize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ if [[ "$comp" == *"gcc"* ]]; then
echo "The gcc@latest is set. Trying to find latest available gcc compiler ..."
use_latest=1
elif [ -z "$(cat ~/.spack/linux/compilers.yaml | grep $comp_str)" ]; then
echo "Given compiler ($comp) is not found! Trying to find latest available gcc compiler ..."
use_latest=1
echo "Given compiler ($comp) is not found! Exiting ..."
exit 1
fi

if [[ $use_latest == 1 ]]; then
Expand Down

0 comments on commit 4d88abf

Please sign in to comment.