diff --git a/tools/check.sh b/tools/check.sh index d56e631..60e519a 100755 --- a/tools/check.sh +++ b/tools/check.sh @@ -43,6 +43,12 @@ setup_local_pkg_config() { # distro dev .pc files. CI does the same small shim explicitly; keeping the # fallback here makes "./tools/check.sh" the real one-command gate instead # of a tiny pkg-config scavenger hunt. + # + # Linux-only: the shim exists for images missing distro dev .pc files. + # macOS has no ldconfig (and Bevy links system frameworks there); without + # this guard the ldconfig pipeline aborts the whole gate under + # `set -euo pipefail` with exit 127. + command -v ldconfig >/dev/null 2>&1 || return 0 pcdir=$(mktemp -d) local pclibdir="$pcdir/lib" mkdir -p "$pclibdir"