diff options
| author | 2024-02-02 17:55:49 +0200 | |
|---|---|---|
| committer | 2024-02-02 17:55:49 +0200 | |
| commit | 7d3a63d5e05787847e5a199ffdd5bad99e7dbd7a (patch) | |
| tree | f8a532d489cc486b34be67e242eb879d0890e60a | |
| parent | Add a build.zig file defining the module (diff) | |
| download | zig-libarchive-7d3a63d5e05787847e5a199ffdd5bad99e7dbd7a.tar.gz zig-libarchive-7d3a63d5e05787847e5a199ffdd5bad99e7dbd7a.tar.xz zig-libarchive-7d3a63d5e05787847e5a199ffdd5bad99e7dbd7a.zip | |
Update for latest zig0.3.0
| -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 | } |