diff options
| -rw-r--r-- | build.zig | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | pub fn build(b: *@import("std").Build) void { | 1 | pub fn build(b: *@import("std").Build) void { |
| 2 | _ = b.addModule("libarchive", .{ .source_file = .{ .path = "libarchive.zig" } }); | 2 | const target = b.standardTargetOptions(.{}); |
| 3 | const mod = b.addModule("libarchive", .{ | ||
| 4 | .root_source_file = .{ .path = "libarchive.zig" }, | ||
| 5 | .target = target, | ||
| 6 | }); | ||
| 7 | mod.linkSystemLibrary("libarchive", .{}); | ||
| 3 | } | 8 | } |