diff options
| author | 2024-07-10 10:20:47 +0300 | |
|---|---|---|
| committer | 2024-07-10 10:20:47 +0300 | |
| commit | 6e7585f1f74936ff48db0613a120db4c4fee3c1a (patch) | |
| tree | ae214a59aaccde324bc04285dafbf2b2146fe2f7 /build.zig | |
| parent | Update for latest zig (diff) | |
| download | zig-libarchive-6e7585f1f74936ff48db0613a120db4c4fee3c1a.tar.gz zig-libarchive-6e7585f1f74936ff48db0613a120db4c4fee3c1a.tar.xz zig-libarchive-6e7585f1f74936ff48db0613a120db4c4fee3c1a.zip | |
Update for zig 0.13.00.4.0
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -1,7 +1,10 @@ | |||
| 1 | pub fn build(b: *@import("std").Build) void { | 1 | pub fn build(b: *@import("std").Build) void { |
| 2 | const target = b.standardTargetOptions(.{}); | 2 | const target = b.standardTargetOptions(.{}); |
| 3 | const mod = b.addModule("libarchive", .{ | 3 | const mod = b.addModule("libarchive", .{ |
| 4 | .root_source_file = .{ .path = "libarchive.zig" }, | 4 | .root_source_file = .{ .src_path = .{ |
| 5 | .owner = b, | ||
| 6 | .sub_path = "libarchive.zig", | ||
| 7 | } }, | ||
| 5 | .target = target, | 8 | .target = target, |
| 6 | }); | 9 | }); |
| 7 | mod.linkSystemLibrary("libarchive", .{}); | 10 | mod.linkSystemLibrary("libarchive", .{}); |