From 3d457c968af4ddcb3bc89965272b46fc2aa91452 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Wed, 10 Jul 2024 10:36:25 +0300 Subject: Simplify .root_source_file in build.zig --- build.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.zig b/build.zig index d332001..95535a2 100644 --- a/build.zig +++ b/build.zig @@ -1,10 +1,7 @@ pub fn build(b: *@import("std").Build) void { const target = b.standardTargetOptions(.{}); const mod = b.addModule("libarchive", .{ - .root_source_file = .{ .src_path = .{ - .owner = b, - .sub_path = "libarchive.zig", - } }, + .root_source_file = b.path("libarchive.zig"), .target = target, }); mod.linkSystemLibrary("libarchive", .{}); -- cgit v1.2.3