setup.sh: detect libomp by dylib presence, not brew prefix (false-positive fix by fabio-rovai, #47)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
JustVugg
2026-07-11 13:02:34 +02:00
parent 89d95fc73b
commit 1bdaeee82e
+1 -1
View File
@@ -15,7 +15,7 @@ Darwin)
command -v clang >/dev/null || { echo "manca clang (xcode-select --install)"; exit 1; } 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 " clang: $(clang --version | head -1) · $(sysctl -n hw.ncpu) core"
echo -n " OpenMP: " 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 else echo "libomp assente -> build single-thread (consigliato: brew install libomp)"; fi
;; ;;
MINGW*|MSYS*) MINGW*|MSYS*)