mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
stage2: disable stack-protector on wasm, matching stage1
The CI gave me: unknown import: `env::__stack_chk_fail` has not been defined
This commit is contained in:
parent
d6ba66e50d
commit
fdb934a157
@ -301,8 +301,8 @@ pub fn supportsStackProbing(target: std.Target) bool {
|
||||
}
|
||||
|
||||
pub fn supportsStackProtector(target: std.Target) bool {
|
||||
_ = target;
|
||||
return true;
|
||||
// TODO: investigate whether stack-protector works on wasm
|
||||
return !target.isWasm();
|
||||
}
|
||||
|
||||
pub fn libcProvidesStackProtector(target: std.Target) bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user