From 593576ab90fe7745acef03b88849aa904c399731 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Fri, 21 Jun 2024 17:14:27 +0200 Subject: [PATCH] chore: update to Zig 0.13.0 --- .gitignore | 3 ++- build.zig | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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, });