| ... | ... | @@ -8728,6 +8728,11 @@ static void init(CodeGen *g) { |
| 8728 | 8728 | target_specific_cpu_args = ""; |
| 8729 | 8729 | target_specific_features = riscv_default_features; |
| 8730 | 8730 | } else if (g->zig_target->arch == ZigLLVM_x86) { |
| 8731 | // This is because we're really targeting i686 rather than i386. |
| 8732 | // It's pretty much impossible to use many of the language features |
| 8733 | // such as fp16 if you stick use the x87 only. This is also what clang |
| 8734 | // uses as base cpu. |
| 8735 | // TODO https://github.com/ziglang/zig/issues/2883 |
| 8731 | 8736 | target_specific_cpu_args = "pentium4"; |
| 8732 | 8737 | target_specific_features = ""; |
| 8733 | 8738 | } else { |