Don't use SSE on freestanding

This commit is contained in:
Noam Preil 2019-10-26 14:08:11 -04:00 committed by Andrew Kelley
parent b8305b5648
commit d91fc0fdd8

View File

@ -8469,7 +8469,12 @@ static void init(CodeGen *g) {
// uses as base cpu.
// TODO https://github.com/ziglang/zig/issues/2883
target_specific_cpu_args = "pentium4";
if (g->zig_target->os == OsFreestanding) {
target_specific_features = "-sse";
}
else {
target_specific_features = "";
}
} else {
target_specific_cpu_args = "";
target_specific_features = "";