Skip to content

Commit fdb934a

Browse files
committed
stage2: disable stack-protector on wasm, matching stage1
The CI gave me: unknown import: `env::__stack_chk_fail` has not been defined
1 parent d6ba66e commit fdb934a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/target.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ pub fn supportsStackProbing(target: std.Target) bool {
301301
}
302302

303303
pub fn supportsStackProtector(target: std.Target) bool {
304-
_ = target;
305-
return true;
304+
// TODO: investigate whether stack-protector works on wasm
305+
return !target.isWasm();
306306
}
307307

308308
pub fn libcProvidesStackProtector(target: std.Target) bool {

0 commit comments

Comments
 (0)