Skip to content

Commit

Permalink
fix(wasm-api): temporarily disable WasmLibOpts.out due to Zig build…
Browse files Browse the repository at this point in the history
… updates
  • Loading branch information
postspectacular committed Jun 28, 2023
1 parent 325bf98 commit cf63c04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/wasm-api/zig/build-v0.11.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cf63c04

Please sign in to comment.