Skip to content

Commit c8e4327

Browse files
committed
bump to zig 0.13
1 parent bd414c4 commit c8e4327

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

.github/workflows/zig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- uses: goto-bus-stop/setup-zig@v2
3232
with:
33-
version: 0.12.0
33+
version: 0.13.0
3434
- uses: actions/cache@v4
3535
with:
3636
path: |

zig/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
zig-cache/
2+
.zig-cache/
23
zig-out/
34
.minsk-history

zig/build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
.minimum_zig_version = "0.12.0",
55
.dependencies = .{
66
.ziglyph = .{
7-
.url = "https://codeberg.org/dude_the_builder/ziglyph/archive/0e17bd36a4e882b194a87c283bd78562ea215116.tar.gz",
8-
.hash = "12208553f3f47e51494e187f4c0e6f6b3844e3993436cad4a0e8c4db4e99645967b5",
7+
.url = "https://codeberg.org/dude_the_builder/ziglyph/archive/b89d43d1e3fb01b6074bc1f7fc980324b04d26a5.tar.gz",
8+
.hash = "12207831bce7d4abce57b5a98e8f3635811cfefd160bca022eb91fe905d36a02cf25",
99
},
1010
},
1111
.paths = .{""},

zig/ds_ext/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const std = @import("std");
33
pub fn build(b: *std.Build) *std.Build.Module {
44
const this_dir = comptime std.fs.path.dirname(@src().file) orelse ".";
55
return b.addModule("ds_ext", .{
6-
.root_source_file = .{ .path = this_dir ++ "/src/main.zig" },
6+
.root_source_file = .{ .cwd_relative = this_dir ++ "/src/main.zig" },
77
});
88
}

zig/linenoise/build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ pub fn build(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.buil
1212
});
1313
result.linkLibC();
1414
result.addCSourceFile(.{
15-
.file = .{ .path = this_dir ++ "/linenoise-ship.c" },
15+
.file = .{ .cwd_relative = this_dir ++ "/linenoise-ship.c" },
1616
.flags = &.{"-DUSE_UTF8"},
1717
});
18-
result.addIncludePath(.{ .path = this_dir });
18+
result.addIncludePath(.{ .cwd_relative = this_dir });
1919
const lib = b.addInstallArtifact(result, .{});
20-
result.installHeader(.{ .path = this_dir ++ "/linenoise.h" }, "linenoise.h");
20+
result.installHeader(.{ .cwd_relative = this_dir ++ "/linenoise.h" }, "linenoise.h");
2121
return .{ .raw = result, .lib = lib };
2222
}

zig/mc/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.buil
44
const this_dir = comptime std.fs.path.dirname(@src().file) orelse ".";
55
return b.addExecutable(.{
66
.name = "mc",
7-
.root_source_file = .{ .path = this_dir ++ "/src/main.zig" },
7+
.root_source_file = .{ .cwd_relative = this_dir ++ "/src/main.zig" },
88
.target = target,
99
.optimize = optimize,
1010
});

zig/minsk/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const std = @import("std");
33
pub fn build(b: *std.Build) *std.Build.Module {
44
const this_dir = comptime std.fs.path.dirname(@src().file) orelse ".";
55
return b.addModule("minsk", .{
6-
.root_source_file = .{ .path = this_dir ++ "/src/main.zig" },
6+
.root_source_file = .{ .cwd_relative = this_dir ++ "/src/main.zig" },
77
});
88
}

zig/minsk/src/code_analysis/syntax/syntax_facts.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn streq(a: []const u8, b: []const u8) bool {
3030
}
3131

3232
pub fn keywordKind(text: []const u8) SyntaxKind {
33-
const keywords = std.ComptimeStringMap(SyntaxKind, .{
33+
const keywords = std.StaticStringMap(SyntaxKind).initComptime(.{
3434
.{ "true", .true_keyword },
3535
.{ "false", .false_keyword },
3636
.{ "let", .let_keyword },

zig/minsk_meta/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const std = @import("std");
33
pub fn build(b: *std.Build) *std.Build.Module {
44
const this_dir = comptime std.fs.path.dirname(@src().file) orelse ".";
55
return b.addModule("minsk_meta", .{
6-
.root_source_file = .{ .path = this_dir ++ "/src/main.zig" },
6+
.root_source_file = .{ .cwd_relative = this_dir ++ "/src/main.zig" },
77
});
88
}

zig/minsk_runtime/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const std = @import("std");
33
pub fn build(b: *std.Build) *std.Build.Module {
44
const this_dir = comptime std.fs.path.dirname(@src().file) orelse ".";
55
return b.addModule("minsk_runtime", .{
6-
.root_source_file = .{ .path = this_dir ++ "/src/main.zig" },
6+
.root_source_file = .{ .cwd_relative = this_dir ++ "/src/main.zig" },
77
});
88
}

0 commit comments

Comments
 (0)