A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Note that you can download a binary of master branch.
| 1 | mkdir build |
| 2 | cd build |
| 3 | cmake .. |
| 4 | make install |
Need help? Troubleshooting Build Issues
| 1 | brew install cmake llvm |
| 2 | brew outdated llvm || brew upgrade llvm |
| 3 | mkdir build |
| 4 | cd build |
| 5 | cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix llvm) |
| 6 | make -j install |
You will now run into this issue:
homebrew and llvm 10 packages in apt.llvm.org are broken with undefined reference to getPollyPluginInfo
or this https://github.com/ziglang/zig/issues/5055, in which case try -DZIG_WORKAROUND_4799=ON
Please help upstream LLVM and Homebrew solve this issue, there is nothing Zig can do about it. See that issue for a workaround you can do in the meantime.
See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows