We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d62c3 commit 13cda2bCopy full SHA for 13cda2b
1 file changed
scripts/profiling/profile-callgrind.sh
@@ -4,6 +4,12 @@ set -euo pipefail
4
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
5
cd "$ROOT_DIR"
6
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
+
13
JOBS="$(sysctl -n hw.ncpu 2>/dev/null || echo 4)"
14
15
MAKE_CMD=()
0 commit comments