Skip to content

Commit

Permalink
std.Build.Step.InstallArtifact: disable emit-h
Browse files Browse the repository at this point in the history
This branch was not intended to introduce new test coverage on the
emit-h feature.

See ziglang#9698
  • Loading branch information
andrewrk committed Jul 31, 2023
1 parent 6393928 commit bdbd617
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/std/Build/Step/InstallArtifact.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bdbd617

Please sign in to comment.