From 7b70cc8c2c60207e42adf0c0f259fe8e5d53305a Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Wed, 17 Jun 2026 12:13:15 -0700 Subject: [PATCH] make sure we are always testing the latest LLVM version supported on darwin Signed-off-by: Jade Abraham --- util/cron/common-darwin.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/util/cron/common-darwin.bash b/util/cron/common-darwin.bash index 0157a5bda70c..29a060d45d6d 100644 --- a/util/cron/common-darwin.bash +++ b/util/cron/common-darwin.bash @@ -1,5 +1,7 @@ #!/usr/bin/env bash +UTIL_CRON_DIR=$(cd $(dirname ${BASH_SOURCE[0]}) ; pwd) + # 2017-11-03: needed on chapelmac since I.T. updates on 2017-10-10 # known to be needed on a Macbook when connected over VPN export CHPL_RT_MASTERIP=127.0.0.1 @@ -18,3 +20,13 @@ export PATH="$(brew --prefix python3)/libexec/bin:"$PATH # 2026-05-04: Mac test machines keep hitting OOM, so reduce number of concurrent # make jobs. export CHPL_MAKE_MAX_CPU_COUNT=4 + +LATEST_LLVM_SUPPORT=$($UTIL_CRON_DIR/../chplenv/chpl_llvm.py --supported-versions | cut -d, -f1) +ACTUAL_LLVM_VERSION=$($UTIL_CRON_DIR/../chplenv/chpl_llvm.py --llvm-version) +# if system, make sure latest llvm matches the expected +if [ "$($UTIL_CRON_DIR/../chplenv/chpl_llvm.py)" = "system" ]; then + if [ "$LATEST_LLVM_SUPPORT" != "$ACTUAL_LLVM_VERSION" ]; then + echo "ERROR: system LLVM version $ACTUAL_LLVM_VERSION does not match expected $LATEST_LLVM_SUPPORT" + exit 1 + fi +fi