diff --git a/.gitignore b/.gitignore index fe95f8d..02689f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/zig-* +/zig-out +/.zig-cache diff --git a/build.zig b/build.zig index b3ba3f0..720dbed 100644 --- a/build.zig +++ b/build.zig @@ -5,17 +5,17 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); const nvim_c_mod = b.addModule("nvim_c", .{ - .root_source_file = .{ .path = "nvim_c.zig" }, + .root_source_file = b.path("nvim_c.zig"), .link_libc = true, }); _ = b.addModule("znvim", .{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .imports = &.{.{ .name = "nvim_c", .module = nvim_c_mod }}, }); const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, });