Skip to content

Commit

Permalink
Enable compilation on GCP and Azure (#953)
Browse files Browse the repository at this point in the history
Fixes #952.
  • Loading branch information
weihuang-jedi authored Jun 18, 2024
1 parent 1651c5c commit 65b5305
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ elif [[ -d /data/prod ]] ; then
fi
target=s4
module purge
elif [[ "$(dnsdomainname)" =~ "pw" ]]; then
if [[ "${PW_CSP}" == "aws" ]]; then # TODO: Add other CSPs here.
target=noaacloud
module purge
else
if [[ ! -v PW_CSP ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2; exit 99
elif [[ -z "${PW_CSP}" ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2; exit 99
else
echo WARNING: UNSUPPORTED CSP PLATFORM 1>&2; exit 99
if [[ "${PW_CSP}" == "aws" || "${PW_CSP}" == "azure" || "${PW_CSP}" == "google" ]]; then
target=noaacloud
module purge
else
echo WARNING: UNKNOWN PLATFORM 1>&2; exit 99
fi
fi
else

echo WARNING: UNKNOWN PLATFORM 1>&2
fi

unset __ms_shell
Expand Down

0 comments on commit 65b5305

Please sign in to comment.