Go to file
2020-08-04 17:17:48 -07:00
.builds
.github
ci ci: update msys2 installer 2020-07-25 22:21:52 -07:00
cmake llvm11: link against libClangToolingCore 2020-07-24 17:08:39 -07:00
deps
doc Add meta viewport to fix mobile rendering, add missing <code> block 2020-07-27 17:10:55 +03:00
lib update C lib/include/ files from clang 10 to 11rc1 2020-08-04 17:17:48 -07:00
src Merge remote-tracking branch 'origin/master' into llvm11 2020-08-04 17:09:40 -07:00
src-self-hosted Merge remote-tracking branch 'origin/master' into llvm11 2020-08-04 17:09:40 -07:00
test stage2 tests: support the -Denable-qemu options and friends 2020-08-04 15:32:16 -07:00
tools
.gitattributes
.gitignore
build.zig stage2 tests: support the -Denable-qemu options and friends 2020-08-04 15:32:16 -07:00
CMakeLists.txt update clang drivers from llvm 10 to 11 2020-07-24 17:01:52 -07:00
CONTRIBUTING.md
LICENSE
README.md update LLVM 10 version numbers to 11 2020-07-24 16:49:43 -07:00

ZIG

A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Resources

Building from Source

Build Status

Note that you can download a binary of master branch.

Stage 1: Build Zig from C++ Source Code

Dependencies

POSIX
  • cmake >= 2.8.5
  • gcc >= 5.0.0 or clang >= 3.6.0
  • LLVM, Clang, LLD development libraries == 11.x, compiled with the same gcc or clang version above
Windows
  • cmake >= 3.15.3
  • Microsoft Visual Studio. Supported versions:
    • 2015 (version 14)
    • 2017 (version 15.8)
    • 2019 (version 16)
  • LLVM, Clang, LLD development libraries == 11.x

Instructions

POSIX
mkdir build
cd build
cmake ..
make install

Need help? Troubleshooting Build Issues

MacOS
brew install cmake llvm
brew outdated llvm || brew upgrade llvm
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix llvm)
make install
Windows

See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows