build: fix handling disabling .h file generation

master
Andrew Kelley 2020-02-06 13:46:59 -05:00
parent cfcaf09cce
commit 786700249e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 2 additions and 2 deletions

View File

@ -1416,7 +1416,7 @@ pub const LibExeObjStep = struct {
self.builder.installArtifact(self); 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); self.builder.installRaw(self, dest_filename);
} }
@ -2135,7 +2135,7 @@ pub const LibExeObjStep = struct {
try zig_args.append("-isystem"); try zig_args.append("-isystem");
try zig_args.append(self.builder.pathFromRoot(include_path)); try zig_args.append(self.builder.pathFromRoot(include_path));
}, },
.OtherStep => |other| { .OtherStep => |other| if (!other.disable_gen_h) {
const h_path = other.getOutputHPath(); const h_path = other.getOutputHPath();
try zig_args.append("-isystem"); try zig_args.append("-isystem");
try zig_args.append(fs.path.dirname(h_path).?); try zig_args.append(fs.path.dirname(h_path).?);