chore: update to Zig 0.13.0

This commit is contained in:
LordMZTE 2024-06-21 17:14:27 +02:00
parent 8e52c461dc
commit 593576ab90
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
/zig-* /zig-out
/.zig-cache

View file

@ -5,17 +5,17 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{}); const optimize = b.standardOptimizeOption(.{});
const nvim_c_mod = b.addModule("nvim_c", .{ 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, .link_libc = true,
}); });
_ = b.addModule("znvim", .{ _ = 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 }}, .imports = &.{.{ .name = "nvim_c", .module = nvim_c_mod }},
}); });
const main_tests = b.addTest(.{ const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" }, .root_source_file = b.path("src/main.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });