mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 13:20:14 +00:00
Homebrew had switched to LLVM 18, use llvm@17 for LLVM 17+
parent
6c1fb515b8
commit
4608d26abe
@ -45,7 +45,7 @@ The LLVM repositories/packages are listed at https://apt.llvm.org/. The followin
|
||||
On macOS, you must force static linking of LLVM using `-DZIG_STATIC_LLVM=on`. The full invocation will then look like:
|
||||
|
||||
```
|
||||
cmake .. -DCMAKE_PREFIX_PATH="$(brew --prefix llvm);$(brew --prefix zstd)" -DZIG_STATIC_LLVM=on
|
||||
cmake .. -DCMAKE_PREFIX_PATH="$(brew --prefix llvm@17);$(brew --prefix zstd)" -DZIG_STATIC_LLVM=on
|
||||
```
|
||||
|
||||
After upgrading LLVM, it's often necessary to remove the CMake cache and build directories:
|
||||
|
Loading…
Reference in New Issue
Block a user