| ... | ... | @@ -863,7 +863,10 @@ pub const NativeTargetInfo = struct { |
| 863 | 863 | } |
| 864 | 864 | |
| 865 | 865 | fn detectNativeCpuAndFeatures(cpu_arch: Target.Cpu.Arch, os: Target.Os, cross_target: CrossTarget) ?Target.Cpu { |
| 866 | | switch (cpu_arch) { |
| 866 | // Here we switch on a comptime value rather than `cpu_arch`. This is valid because `cpu_arch`, |
| 867 | // although it is a runtime value, is guaranteed to be one of the architectures in the set |
| 868 | // of the respective switch prong. |
| 869 | switch (std.Target.current.cpu.arch) { |
| 867 | 870 | .x86_64, .i386 => { |
| 868 | 871 | return @import("system/x86.zig").detectNativeCpuAndFeatures(cpu_arch, os, cross_target); |
| 869 | 872 | }, |