From cf63c042208761aac9b27c76656a63427f7120af Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Wed, 28 Jun 2023 22:54:19 +0200 Subject: [PATCH] fix(wasm-api): temporarily disable `WasmLibOpts.out` due to Zig build updates --- packages/wasm-api/zig/build-v0.11.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/wasm-api/zig/build-v0.11.zig b/packages/wasm-api/zig/build-v0.11.zig index 2aca83d67e..ed4345b064 100644 --- a/packages/wasm-api/zig/build-v0.11.zig +++ b/packages/wasm-api/zig/build-v0.11.zig @@ -16,7 +16,7 @@ pub const WasmLibOpts = struct { base: []const u8 = "node_modules", /// Relative path to root source file root: []const u8 = "zig/main.zig", - /// Relative path to output directory + /// CURRENTLY UNUSED - Relative path to output directory out: []const u8 = "src", /// Additional WASM API support modules. /// Only need to specify custom/extra modules @@ -63,7 +63,10 @@ pub fn wasmLib(b: *Build, opts: WasmLibOpts) *Build.CompileStep { .optimize = if (opts.optimize) |m| m else b.standardOptimizeOption(.{}), }); if (lib.optimize == .ReleaseSmall or lib.optimize == .ReleaseFast) lib.strip = true; - lib.setOutputDir(opts.out); + + // FIXME re-enable once workaround has been identified + // lib.setOutputDir(opts.out); + // build flags lib.rdynamic = true; lib.import_symbols = true;