Skip to content

Commit 13cda2b

Browse files
committed
don't allow to run on macOS arm64
1 parent 49d62c3 commit 13cda2b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/profiling/profile-callgrind.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ set -euo pipefail
44
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
55
cd "$ROOT_DIR"
66

7+
if [[ "$(uname -s)" == "Darwin" ]] && [[ "$(uname -m)" == "arm64" ]]; then
8+
printf 'ERROR: Valgrind/callgrind does not support macOS on Apple Silicon (arm64) without having highly possible OS crashes.\n' >&2
9+
printf 'Use a Linux aarch64 container or VM to run this script.\n' >&2
10+
exit 1
11+
fi
12+
713
JOBS="$(sysctl -n hw.ncpu 2>/dev/null || echo 4)"
814

915
MAKE_CMD=()

0 commit comments

Comments
 (0)