A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Note that you can download a binary of master branch or install Zig from a package manager.
| 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 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
error: unable to create target: 'Unable to find target for this triple (no targets are registered)',
in which case try -DZIG_WORKAROUND_4799=ON
Hopefully this will be fixed upstream with LLVM 10.0.1.
See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows