wasm: disable stack protector

This commit is contained in:
Mitchell Hashimoto
2022-12-13 10:03:26 -08:00
parent a87b21dbee
commit c34d911488

View File

@ -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);