From e39a2afa24a8f3db4d40b40703254011acc97efa Mon Sep 17 00:00:00 2001 From: Jeff Fowler Date: Sat, 5 Sep 2026 13:19:42 +0200 Subject: [PATCH] add zstd=off to readme for building llvm Macos would quietly link this dynamically in the background if it is present in f.ex homebrew. Then building zig against that llvm would fail, not being able to find the zstd path. This can also be resolved by passing the path to the _linker_ ``` -DCMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/lib" ``` But if it's not needed at all why include it in the first place. Note that passing this to `DCMAKE_PREFIX_PATH` is silently ignored. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7bbd34b69a5e6b51b5ed16e37d39678b0475151c..6e3cd2d4d12488baf140fe5289aabb17b1e72285 100644 --- a/README.md +++ b/README.md @@ -385,6 +385,7 @@ cmake ../llvm \ -DLLVM_ENABLE_TERMINFO=OFF \ -DLLVM_ENABLE_LIBEDIT=OFF \ -DLLVM_ENABLE_ASSERTIONS=ON \ + -DLLVM_ENABLE_ZSTD=OFF \ -DLLVM_PARALLEL_LINK_JOBS=1 \ -G Ninja ninja install -- 2.54.0