From c34d911488a8e6eb0888dc7d2f622c501afee198 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Dec 2022 10:03:26 -0800 Subject: [PATCH] wasm: disable stack protector --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 0e89f71ec..b9f56e776 100644 --- a/build.zig +++ b/build.zig @@ -120,9 +120,11 @@ pub fn build(b: *std.build.Builder) !void { wasm.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding }); wasm.setBuildMode(mode); wasm.setOutputDir("zig-out"); - wasm.addOptions("build_options", exe_options); + // Stack protector adds extern requirements that we don't satisfy. + wasm.stack_protector = false; + // Wasm-specific deps try addDeps(b, wasm, true);