Skip to content

Commit

Permalink
Update to latest Zig
Browse files Browse the repository at this point in the history
  • Loading branch information
natecraddock committed Jan 26, 2024
1 parent 0456b7a commit 4dbf46d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn build(b: *std.Build) void {

// Expose zf as a Zig module
_ = b.addModule("zf", .{
.source_file = .{ .path = "src/lib.zig" },
.root_source_file = .{ .path = "src/lib.zig" },
});

const ziglyph = b.dependency("ziglyph", .{
Expand All @@ -34,7 +34,7 @@ pub fn build(b: *std.Build) void {
.flags = &.{},
});

exe.addModule("ziglyph", ziglyph.module("ziglyph"));
exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph"));

// This is needed for pselect
exe.linkLibC();
Expand All @@ -53,7 +53,7 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});
tests.addModule("ziglyph", ziglyph.module("ziglyph"));
tests.root_module.addImport("ziglyph", ziglyph.module("ziglyph"));

const run_tests = b.addRunArtifact(tests);
const test_step = b.step("test", "Run tests");
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.version = "0.10.0",
.dependencies = .{
.ziglyph = .{
.url = "https://codeberg.org/dude_the_builder/ziglyph/archive/c64c54c6c55545a935c6884a8cdc7d02051633c7.tar.gz",
.hash = "1220a0ffa93af4ba93abafbec043fdfd852fea258423f0534c2ab6d81bdbde532eb8",
.url = "https://codeberg.org/dude_the_builder/ziglyph/archive/0e17bd36a4e882b194a87c283bd78562ea215116.tar.gz",
.hash = "12208553f3f47e51494e187f4c0e6f6b3844e3993436cad4a0e8c4db4e99645967b5",
}
},
.paths = .{""},
Expand Down

0 comments on commit 4dbf46d

Please sign in to comment.