Commit 8223aca09b

Andrew Kelley <andrew@ziglang.org>
2019-09-13 20:46:22
no-stack-arg-probe only for UEFI
1 parent 2b69888
Changed files (1)
src/codegen.cpp
@@ -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 {