From 38649cc40c240c3c5f0ec548f73192f36ec2ba47 Mon Sep 17 00:00:00 2001 From: Matheus Catarino Date: Sun, 21 Apr 2024 13:46:11 -0300 Subject: [PATCH] remove unecessary & update emsdk --- build.zig | 12 ++++++------ build.zig.zon | 8 ++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/build.zig b/build.zig index 5db6483..2a36554 100644 --- a/build.zig +++ b/build.zig @@ -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); } @@ -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, diff --git a/build.zig.zon b/build.zig.zon index a75a4e4..b2f086b 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -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", }, }, }