ziglang/zig-bootstrap — an open-source project — sits at 539 GitHub stars. take off every zig
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
The purpose of this project is to start with minimum system dependencies and
end with a fully operational Zig compiler for any target.
Version Information
This repository copies sources from upstream. Patches listed below. Use git
to find and inspect the patch diffs.
LLVM, LLD, Clang 21.1.0
zlib 1.3.1
zstd 1.5.2
zig 0.16.0-dev.1354+94e98bfe8
For other versions, check the git tags of this repository.
Patches
all: Deleted unused files.
LLVM: Support .lib extension for static zstd.
LLVM: Portable handling of .def linker flag
LLVM: Don't pass -static when building executables.
Clang: Ignore the examples directory
Clang: Disable building of libclang-cpp.so.
Clang: remove nvptx-arch and amdgpu-arch symlinks
LLD: Added additional include directory to Zig's libunwind.
LLD: Respect LLD_BUILD_TOOLS=OFF
LLD: Skip building docs
zlib: Delete the ability to build a shared library.
Host System Dependencies
C++ compiler capable of building LLVM, Clang, and LLD from source (GCC 5.1+
or Clang)
On some systems, static libstdc++/libc++ may need to be installed
CMake 3.19 or later
make, ninja, or any other build system supported by CMake
POSIX system (bash, mkdir, cd)
Python 3
Build Instructions
./build <arch>-<os>-<abi> <mcpu>
All parameters are required:
<arch>-<os>-<abi>: Replace with one of the Supported Targets below, or use
native for the <arch> value (e.g. native-linux-gnu) to use the native
architecture.
<mcpu>: Replace with a -mcpu parameter of Zig. baseline is recommended
and means it will target a generic CPU for the target. native means it
will target the native CPU. See the Zig documentation for more details.
Please be aware of the following two CMake environment variables that can
significantly affect how long it takes to build:
CMAKE_GENERATOR can be used to select a different generator instead of the
default. For example, CMAKE_GENERATOR=Ninja.
CMAKE_BUILD_PARALLEL_LEVEL can be used to introduce parallelism to build
systems (such as make) which do not default to parallel builds. This option
is irrelevant when using Ninja.
When it succeeds, output can be found in out/zig-<target>-<cpu>/.
Windows Build Instructions
Bootstrapping on Windows with MSVC is also possible via build.bat, which
takes the same arguments as build above.
This script requires that the "C++ CMake tools for Windows" component be
installed via the Visual Studio installer.
The script must be run within the Developer Command Prompt for VS 2019 shell:
build.bat <arch>-<os>-<abi> <mcpu>
To build for x86 Windows, run the script within the x86 Native Tools Command Prompt for VS 2019.
Supported Targets
If you try a "not tested" one and find a problem please file an issue,
and a pull request linking to the issue in the table.
If you try a "not tested" one and find that it works, please file a pull request
changing the status to "OK".
If you try an "OK" one and it does not work, please check if there is an existing
issue, and if not, file an issue.
Note: Generally, for Linux targets, we prefer the musl libc builds over the
glibc builds here, because musl builds end up producing a static binary, which
is more portable across Linux distributions.
How active is development on ziglang/zig-bootstrap?
The most recent commit recorded on ziglang/zig-bootstrap was 11 months ago, based on the GitHub push timestamp. The repository has 112 forks — one of the better signals of community interest.
How many stars does ziglang/zig-bootstrap have?
ziglang/zig-bootstrap has 539 GitHub stars — refresh the page for the live number, or check github.com/ziglang/zig-bootstrap. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is ziglang/zig-bootstrap open source?
TopGit's metadata for ziglang/zig-bootstrap does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is ziglang/zig-bootstrap?
ziglang/zig-bootstrap (ziglang/zig-bootstrap) is a Batchfile project on GitHub. From the project's own README: take off every zig
Where do I read more about ziglang/zig-bootstrap?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/ziglang/zig-bootstrap is the definitive source.
Read full README in the tab above.
Curious whether zig-bootstrap is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about zig-bootstrap.