Go to file
2020-08-04 17:52:26 -07:00
.builds ci: don't rely on sourcehut's pkg system 2020-01-30 10:23:00 -05:00
.github Sponsors Button => ZSF 2020-07-11 18:33:56 -04:00
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 deps/SoftFloat-3e/: commit with LF line endings 2020-05-31 12:18:31 -04:00
doc Add meta viewport to fix mobile rendering, add missing <code> block 2020-07-27 17:10:55 +03:00
lib update install files for LLVM 11rc1 2020-08-04 17:52:26 -07:00
src update install files for LLVM 11rc1 2020-08-04 17:52:26 -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 Fix a few std.sort.sort invocations 2020-06-12 13:33:31 -04:00
.gitattributes .gitattributes: deps/SoftFloat-3e/*.txt lines are crlf terminated 2020-04-05 11:03:31 -04:00
.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 add behavior tests fro macro translations 2020-07-16 17:10:52 +03:00
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