diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-05-16 01:22:56 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-16 01:22:56 -0400 |
| commit | a286b5de38617809db58f918a81a650b41fbdd49 (patch) | |
| tree | 84af0c2f6d3d5a2f34a23fea2de04c109882dd72 /build.zig | |
| parent | 294bfb3321fe82371d57d39137615dddfef9af4b (diff) | |
| download | zig-a286b5de38617809db58f918a81a650b41fbdd49.tar.gz zig-a286b5de38617809db58f918a81a650b41fbdd49.zip | |
build.zig: -Dlib-files-only skips installing self-hosted
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -53,7 +53,6 @@ pub fn build(b: *Builder) !void { exe.setBuildMode(mode); test_step.dependOn(&exe.step); b.default_step.dependOn(&exe.step); - exe.install(); const skip_release = b.option(bool, "skip-release", "Main test suite skips release builds") orelse false; const skip_release_small = b.option(bool, "skip-release-small", "Main test suite skips release-small builds") orelse skip_release; @@ -70,6 +69,9 @@ pub fn build(b: *Builder) !void { try configureStage2(b, exe, ctx); } + if (!only_install_lib_files) { + exe.install(); + } const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse false; if (link_libc) exe.linkLibC(); |
