Skip to content

Commit

Permalink
remove unecessary & update emsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Apr 21, 2024
1 parent 299166e commit 38649cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 6 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ pub fn buildLibSokol(b: *Build, options: LibSokolOptions) !*CompileStep {
.file = .{ .path = csrc_root ++ "sokol_imgui.c" },
.flags = cflags,
});
const cimgui = try buildImgui(b, .{ .target = options.target, .optimize = options.optimize, .emsdk = options.emsdk });
const cimgui = try buildImgui(b, .{
.target = options.target,
.optimize = options.optimize,
.emsdk = options.emsdk,
});
for (cimgui.root_module.include_dirs.items) |dir| {
try lib.root_module.include_dirs.append(b.allocator, dir);
}
Expand Down Expand Up @@ -246,12 +250,8 @@ pub fn build(b: *Build) !void {
.dflags = &[_][]const u8{
"-w", // warnings as error
// more info: ldc2 -preview=help (list all specs)
"-preview=all",
"--enable-no-nans-fp-math",
"-preview=dip1000",
},
.d_packages = if (target.result.isWasm()) &[_][]const u8{
b.dependency("wasmd", .{}).path("arsd-webassembly").getPath(b),
} else null,
// fixme: https://github.com/kassane/sokol-d/issues/1 - betterC works on darwin
.zig_cc = if (target.result.isDarwin() and !enable_betterC) false else enable_zigcc,
.target = target,
Expand Down
8 changes: 2 additions & 6 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@
.hash = "12202af0db41b79a4c7904950269b5e33b7d48f50aae042e334cb8d717a5a2caf48d",
},
.emsdk = .{
.url = "git+https://github.com/emscripten-core/emsdk#c18280c8f3f8f088b4337f0f6a5fdb2be0d67179",
.hash = "12203d61e8947f25993a86b4d73e2d91b4c1d96f1aa07c581b7dffba7cb5ca91bc35",
},
.wasmd = .{
.url = "git+https://github.com/kassane/wasmd#067e21e29aea24ec936d6c6b859f7c9a79894f78",
.hash = "122006f8e097d5bd627f26d2aa3b397d92b400c786f13396c47afed66fed1e8ef2c1",
.url = "git+https://github.com/emscripten-core/emsdk#3.1.57",
.hash = "12205971cb2c23c3f6bf401aa921e4755f43f67628f4689242111f87a2e32ef5f6ab",
},
},
}

0 comments on commit 38649cc

Please sign in to comment.