Skip to content

Commit 4d662a6

Browse files
committed
Don't forget to install zlib's headers
1 parent 169a24c commit 4d662a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
| Refname | libGRPC version | Zig `0.16.x` | Zig `0.15.x` |
1111
|------------|-----------------|:------------:|:------------:|
12-
| `1.76.0+1` | `v1.76.0` |||
12+
| `1.76.0+2` | `v1.76.0` |||
1313

1414
## Use
1515

build.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ pub fn build(b: *Build) !void {
150150
.flags = &c_flags,
151151
});
152152
zmod.addCMacro("HAVE_UNISTD_H", "1");
153+
libz.installHeadersDirectory(zlib.path(""), "", .{
154+
.include_extensions = &.{ "zconf.h", "zlib.h" },
155+
});
153156
libs_step.dependOn(&b.addInstallArtifact(libz, .{}).step);
154157

155158
// Address Sorting

0 commit comments

Comments
 (0)