authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-06 13:46:59-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-06 13:46:59-05:00
log786700249e4a3547d4adb73f30b9c42d014b40e3
treed04c793d9441f2b94a54ae63643e365d9549168f
parentcfcaf09cce38821f8b82b840db537d7082a7a8dc
signaturelock-open Commit is signed but in an unrecognized format.

build: fix handling disabling .h file generation


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/build.zig+2-2
...@@ -1416,7 +1416,7 @@ pub const LibExeObjStep = struct {...@@ -1416,7 +1416,7 @@ pub const LibExeObjStep = struct {
1416 self.builder.installArtifact(self);1416 self.builder.installArtifact(self);
1417 }1417 }
14181418
1419 pub fn installRaw(self: *LibExeObjStep, dest_filename: [] const u8) void {1419 pub fn installRaw(self: *LibExeObjStep, dest_filename: []const u8) void {
1420 self.builder.installRaw(self, dest_filename);1420 self.builder.installRaw(self, dest_filename);
1421 }1421 }
14221422
...@@ -2135,7 +2135,7 @@ pub const LibExeObjStep = struct {...@@ -2135,7 +2135,7 @@ pub const LibExeObjStep = struct {
2135 try zig_args.append("-isystem");2135 try zig_args.append("-isystem");
2136 try zig_args.append(self.builder.pathFromRoot(include_path));2136 try zig_args.append(self.builder.pathFromRoot(include_path));
2137 },2137 },
2138 .OtherStep => |other| {2138 .OtherStep => |other| if (!other.disable_gen_h) {
2139 const h_path = other.getOutputHPath();2139 const h_path = other.getOutputHPath();
2140 try zig_args.append("-isystem");2140 try zig_args.append("-isystem");
2141 try zig_args.append(fs.path.dirname(h_path).?);2141 try zig_args.append(fs.path.dirname(h_path).?);