From 1bdaeee82ed143c6b7480186e5b9a4614909aa55 Mon Sep 17 00:00:00 2001 From: JustVugg Date: Sat, 11 Jul 2026 13:02:34 +0200 Subject: [PATCH] setup.sh: detect libomp by dylib presence, not brew prefix (false-positive fix by fabio-rovai, #47) Co-Authored-By: Claude Fable 5 --- c/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/setup.sh b/c/setup.sh index 12fc500..c220bd1 100755 --- a/c/setup.sh +++ b/c/setup.sh @@ -15,7 +15,7 @@ Darwin) command -v clang >/dev/null || { echo "manca clang (xcode-select --install)"; exit 1; } echo " clang: $(clang --version | head -1) ยท $(sysctl -n hw.ncpu) core" echo -n " OpenMP: " - if brew --prefix libomp >/dev/null 2>&1; then echo "ok (libomp)" + if [ -f "$(brew --prefix libomp 2>/dev/null)/lib/libomp.dylib" ]; then echo "ok (libomp)" else echo "libomp assente -> build single-thread (consigliato: brew install libomp)"; fi ;; MINGW*|MSYS*)