From a286b5de38617809db58f918a81a650b41fbdd49 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 16 May 2020 01:22:56 -0400 Subject: [PATCH] build.zig: -Dlib-files-only skips installing self-hosted --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index b57ae69638..3636da4f28 100644 --- a/build.zig +++ b/build.zig @@ -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();