build: make -Dskip-stage2-tests not build stage2

for the test-toolchain step
This commit is contained in:
Andrew Kelley 2021-09-16 11:21:19 -07:00
parent ab84ba39d0
commit 2c8b201d05

View File

@ -105,7 +105,9 @@ pub fn build(b: *Builder) !void {
exe.install();
exe.setBuildMode(mode);
exe.setTarget(target);
toolchain_step.dependOn(&exe.step);
if (!skip_stage2_tests) {
toolchain_step.dependOn(&exe.step);
}
b.default_step.dependOn(&exe.step);
exe.single_threaded = single_threaded;