mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
no-stack-arg-probe only for UEFI
This commit is contained in:
parent
2b698888ce
commit
8223aca09b
@ -517,7 +517,7 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) {
|
||||
}
|
||||
if (g->have_stack_probing && !fn->def_scope->safety_off) {
|
||||
addLLVMFnAttrStr(llvm_fn, "probe-stack", "__zig_probe_stack");
|
||||
} else {
|
||||
} else if (g->zig_target->os == OsUefi) {
|
||||
addLLVMFnAttrStr(llvm_fn, "no-stack-arg-probe", "");
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user