diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-16 13:50:47 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-16 14:12:15 -0700 |
| commit | cc9eb9e90fec961a74e90e1ab3d66a7b8ec14f47 (patch) | |
| tree | a6901d6182774785c24697d1232afb5696800955 /src/stage1/zig0.cpp | |
| parent | 2b3df5c81d8455856c2b355694ce818385218f36 (diff) | |
| download | zig-cc9eb9e90fec961a74e90e1ab3d66a7b8ec14f47.tar.gz zig-cc9eb9e90fec961a74e90e1ab3d66a7b8ec14f47.zip | |
build.zig: bootstrap stage1 with zig0
Instead of assuming that the zig version used with `zig build` is
appropriate for building the self-hosted compiler component, we follow
the same path as the cmake build script and build zig0, using that to
produce zig1.o, re-linking to produce stage1.
This allows an arbitrarily old Zig version and corresponding build.zig
script to build all future versions of Zig from source via the bootstrap
compiler. In other words, it allows us to use `zig build` as an
alternative to cmake when bootstrapping.
Diffstat (limited to 'src/stage1/zig0.cpp')
0 files changed, 0 insertions, 0 deletions
