| ... | ... | @@ -355,8 +355,10 @@ pub const CrossTarget = struct { |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | pub fn getCpuModel(self: CrossTarget) *const Target.Cpu.Model { |
| 358 | | if (self.cpu_model) |cpu_model| return cpu_model; |
| 359 | | return self.getCpu().model; |
| 358 | return switch (self.cpu_model) { |
| 359 | .explicit => |cpu_model| cpu_model, |
| 360 | else => self.getCpu().model, |
| 361 | }; |
| 360 | 362 | } |
| 361 | 363 | |
| 362 | 364 | pub fn getCpuFeatures(self: CrossTarget) Target.Cpu.Feature.Set { |
| ... | ... | @@ -645,7 +647,7 @@ pub const CrossTarget = struct { |
| 645 | 647 | self.glibc_version = SemVer{ .major = major, .minor = minor, .patch = patch }; |
| 646 | 648 | } |
| 647 | 649 | |
| 648 | | pub fn getObjectFormat(self: CrossTarget) ObjectFormat { |
| 650 | pub fn getObjectFormat(self: CrossTarget) Target.ObjectFormat { |
| 649 | 651 | return Target.getObjectFormatSimple(self.getOsTag(), self.getCpuArch()); |
| 650 | 652 | } |
| 651 | 653 | |