aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-08-07 18:51:16 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-07 18:51:16 -0700
commitf2f227720b3ffe1797a0a4e500e9a9a639167dc6 (patch)
treea3fab7a9c55775c8bd637161aa2551a7659a21b8 /build.zig
parent0b183beb51367004795d8a431eb06bb2fa4f8250 (diff)
downloadbun-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.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 569a6bdd2..4a20d8481 100644
--- a/build.zig
+++ b/build.zig
@@ -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));
}
{