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*)