chore: update to Zig 0.13.0
This commit is contained in:
parent
8e52c461dc
commit
593576ab90
2 changed files with 5 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
/zig-*
|
||||
/zig-out
|
||||
/.zig-cache
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue