Commit d91fc0fdd8

Noam Preil <pleasantatk@gmail.com>
2019-10-26 20:08:11
Don't use SSE on freestanding
1 parent b8305b5
Changed files (1)
src/codegen.cpp
@@ -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";
-        target_specific_features = "";
+        if (g->zig_target->os == OsFreestanding) {
+            target_specific_features = "-sse";
+        }
+        else {
+            target_specific_features = "";
+        }
     } else {
         target_specific_cpu_args = "";
         target_specific_features = "";