diff options
author | 2023-08-07 18:51:16 -0700 | |
---|---|---|
committer | 2023-08-07 18:51:16 -0700 | |
commit | f2f227720b3ffe1797a0a4e500e9a9a639167dc6 (patch) | |
tree | a3fab7a9c55775c8bd637161aa2551a7659a21b8 /build.zig | |
parent | 0b183beb51367004795d8a431eb06bb2fa4f8250 (diff) | |
download | bun-f2f227720b3ffe1797a0a4e500e9a9a639167dc6.tar.gz bun-f2f227720b3ffe1797a0a4e500e9a9a639167dc6.tar.zst bun-f2f227720b3ffe1797a0a4e500e9a9a639167dc6.zip |
WASM test analyzer (#4043)
* wasm
* WASM test scanner
* Update Makefile
* Update Makefile
* Configurable heap limit
* slightly better error
* Update js_parser.zig
* Update path.test.js
* Update node.mjs
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -182,7 +182,7 @@ pub fn build(b: *Build) !void { is_debug_build = optimize == OptimizeMode.Debug; const bun_executable_name = if (optimize == std.builtin.OptimizeMode.Debug) "bun-debug" else "bun"; const root_src = if (target.getOsTag() == std.Target.Os.Tag.freestanding) - "src/main_wasm.zig" + "root_wasm.zig" else "root.zig"; @@ -322,7 +322,7 @@ pub fn build(b: *Build) !void { const wasm = b.step("bun-wasm", "Build WASM"); var wasm_step = b.addStaticLibrary(.{ .name = "bun-wasm", - .root_source_file = FileSource.relative("src/main_wasm.zig"), + .root_source_file = FileSource.relative("root_wasm.zig"), .target = target, .optimize = optimize, }); @@ -332,6 +332,8 @@ pub fn build(b: *Build) !void { // wasm_step.link_emit_relocs = true; // wasm_step.single_threaded = true; try configureObjectStep(b, wasm_step, @TypeOf(target), target, obj.main_pkg_path.?); + var build_opts = default_build_options; + wasm_step.addOptions("build_options", build_opts.step(b)); } { |