Skip to content

Commit 6bb28ba

Browse files
committed
Updates Zig
1 parent 0a07b3e commit 6bb28ba

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ pub fn build(b: *std.Build) !void {
117117
// Add the example
118118
const example = b.addExecutable(.{
119119
.name = "example",
120-
.root_source_file = b.path("src/example.zig"),
121-
.target = target,
122-
.optimize = optimize,
120+
.root_module = b.createModule(.{
121+
.root_source_file = b.path("src/example.zig"),
122+
.target = target,
123+
.optimize = optimize,
124+
}),
123125
});
124126
example.linkLibrary(lib);
125127
const run_example = b.addRunArtifact(example);

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .sdl,
33
.fingerprint = 0xec638ccbd103848b,
44
.version = "0.0.0",
5-
.minimum_zig_version = "0.15.0-dev.388+05e217607",
5+
.minimum_zig_version = "0.15.0-dev.1218+bc8e1a74c",
66
.dependencies = .{
77
.sdl = .{
88
.url = "https://github.com/libsdl-org/SDL/archive/refs/tags/release-3.2.14.tar.gz",

0 commit comments

Comments
 (0)