From 7c66ebe60dda7d45f416fd9a6d653efce79403f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 19 Oct 2022 04:39:43 -0500 Subject: [PATCH] release-macos: Avoid picking up libzstd from e.g. homebrew As macOS itself doesn't ship with libzstd, avoid picking it up from third party intallations. CMake even looks for things in directories outside of $PATH; for Darwin targets, CMake includes /opt/homebrew in CMAKE_SYSTEM_PREFIX_PATH which gets searched automatically. --- release-macos.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release-macos.sh b/release-macos.sh index d01982b..4c83ddc 100755 --- a/release-macos.sh +++ b/release-macos.sh @@ -23,6 +23,10 @@ fi TAG=$1 +# macOS itself doesn't ship with libzstd; avoid picking up a zstd +# dependency from libraries installed e.g. with homebrew. +export LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF" + RELNAME=llvm-mingw-$TAG-ucrt-macos-universal DEST=$HOME/$RELNAME rm -rf $DEST