Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions util/cron/common-darwin.bash
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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