std.Build.Step.InstallArtifact: disable emit-h

This branch was not intended to introduce new test coverage on the
emit-h feature.

See #9698
This commit is contained in:
Andrew Kelley 2023-07-30 17:22:54 -07:00
parent 6393928d50
commit bdbd617237

View File

@ -77,10 +77,12 @@ pub fn create(owner: *std.Build, artifact: *Step.Compile, options: Options) *Ins
},
.h_dir = switch (options.h_dir) {
.disabled => null,
.default => switch (artifact.kind) {
.lib => .header,
else => null,
},
// https://github.com/ziglang/zig/issues/9698
.default => null,
//.default => switch (artifact.kind) {
// .lib => .header,
// else => null,
//},
.override => |o| o,
},
.implib_dir = switch (options.implib_dir) {