summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--build.zig5
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3cef7be..a51802f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
1zig-cache/ 1.DS_Store
2.zig-cache/
diff --git a/build.zig b/build.zig
index 53e788d..d332001 100644
--- a/build.zig
+++ b/build.zig
@@ -1,7 +1,10 @@
1pub fn build(b: *@import("std").Build) void { 1pub 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", .{});