From 786700249e4a3547d4adb73f30b9c42d014b40e3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 6 Feb 2020 13:46:59 -0500 Subject: [PATCH] build: fix handling disabling .h file generation --- lib/std/build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/build.zig b/lib/std/build.zig index 54e5ea1c47..c19f61e5e8 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1416,7 +1416,7 @@ pub const LibExeObjStep = struct { self.builder.installArtifact(self); } - pub fn installRaw(self: *LibExeObjStep, dest_filename: [] const u8) void { + pub fn installRaw(self: *LibExeObjStep, dest_filename: []const u8) void { self.builder.installRaw(self, dest_filename); } @@ -2135,7 +2135,7 @@ pub const LibExeObjStep = struct { try zig_args.append("-isystem"); try zig_args.append(self.builder.pathFromRoot(include_path)); }, - .OtherStep => |other| { + .OtherStep => |other| if (!other.disable_gen_h) { const h_path = other.getOutputHPath(); try zig_args.append("-isystem"); try zig_args.append(fs.path.dirname(h_path).?);