authorgravatar for jeffowler@gmail.comJeff Fowler <jeffowler@gmail.com> 2026-09-05 13:19:42+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-05 21:20:06+02:00
loge39a2afa24a8f3db4d40b40703254011acc97efa
tree605f8de001f65fb1f78a705f144f557beef31101
parentfacb6b9a62c3816f3df60ca9680c2731a463fd4a

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.

1 files changed, 1 insertions(+), 0 deletions(-)

README.md+1
...@@ -385,6 +385,7 @@ cmake ../llvm \...@@ -385,6 +385,7 @@ cmake ../llvm \
385 -DLLVM_ENABLE_TERMINFO=OFF \385 -DLLVM_ENABLE_TERMINFO=OFF \
386 -DLLVM_ENABLE_LIBEDIT=OFF \386 -DLLVM_ENABLE_LIBEDIT=OFF \
387 -DLLVM_ENABLE_ASSERTIONS=ON \387 -DLLVM_ENABLE_ASSERTIONS=ON \
388 -DLLVM_ENABLE_ZSTD=OFF \
388 -DLLVM_PARALLEL_LINK_JOBS=1 \389 -DLLVM_PARALLEL_LINK_JOBS=1 \
389 -G Ninja390 -G Ninja
390ninja install391ninja install