Skip to content

Commit

Permalink
fixes for latest sokol-zig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jan 15, 2024
1 parent 76250e2 commit d5c89c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ fn buildWeb(b: *Build, target: std.Build.ResolvedTarget, optimize: OptimizeMode,
// create a build step which invokes the Emscripten linker
const emsdk = dep_sokol.builder.dependency("emsdk", .{});
const link_step = try sokol.emLinkStep(b, .{
.lib_main = pacman,
.target = target,
.optimize = optimize,
.emsdk = emsdk,
.use_webgl2 = true,
.use_emmalloc = true,
.use_filesystem = false,
.shell_file_path = dep_sokol.path("src/sokol/web/shell.html").getPath(b),
.lib_sokol = dep_sokol.artifact("sokol"), // this is the sokol C library
.lib_main = pacman,
.emsdk = emsdk,
});
// ...and a special run step to start the web build output via 'emrun'
const run = sokol.emRunStep(b, .{ .name = "pacman", .emsdk = emsdk });
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
.dependencies = .{
.sokol = .{
.url = "git+https://github.com/floooh/sokol-zig.git#1ccb9163c378a577b1c64b54054725dbe0907f45",
.hash = "1220855463d56abac2adea513ed2f44e8c593b90cca41d41a1e2e373484dff293342",
.url = "git+https://github.com/floooh/sokol-zig.git#575294bfe29bc815ce94c68b6ba67c486059789e",
.hash = "1220849cb47ac25215501885476653a846988a498ffb37c8365e4f1554022fbfce7f",
},
},
}

0 comments on commit d5c89c0

Please sign in to comment.