| ... | @@ -204,7 +204,7 @@ pub fn unnamedFieldAffectsAlignment(target: std.Target) bool { | ... | @@ -204,7 +204,7 @@ pub fn unnamedFieldAffectsAlignment(target: std.Target) bool { |
| 204 | }, | 204 | }, |
| 205 | .armeb => { | 205 | .armeb => { |
| 206 | if (std.Target.arm.featureSetHas(target.cpu.features, .has_v7)) { | 206 | if (std.Target.arm.featureSetHas(target.cpu.features, .has_v7)) { |
| 207 | if (std.Target.Abi.default(target.cpu.arch, target.os) == .eabi) return true; | 207 | if (std.Target.Abi.default(target.cpu.arch, target.os.tag) == .eabi) return true; |
| 208 | } | 208 | } |
| 209 | }, | 209 | }, |
| 210 | .arm => return true, | 210 | .arm => return true, |
| ... | @@ -716,7 +716,7 @@ test "alignment functions - smoke test" { | ... | @@ -716,7 +716,7 @@ test "alignment functions - smoke test" { |
| 716 | const x86 = std.Target.Cpu.Arch.x86_64; | 716 | const x86 = std.Target.Cpu.Arch.x86_64; |
| 717 | target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86, .none); | 717 | target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86, .none); |
| 718 | target.cpu = std.Target.Cpu.baseline(x86, target.os); | 718 | target.cpu = std.Target.Cpu.baseline(x86, target.os); |
| 719 | target.abi = std.Target.Abi.default(x86, target.os); | 719 | target.abi = std.Target.Abi.default(x86, target.os.tag); |
| 720 | | 720 | |
| 721 | try std.testing.expect(isTlsSupported(target)); | 721 | try std.testing.expect(isTlsSupported(target)); |
| 722 | try std.testing.expect(!ignoreNonZeroSizedBitfieldTypeAlignment(target)); | 722 | try std.testing.expect(!ignoreNonZeroSizedBitfieldTypeAlignment(target)); |
| ... | @@ -729,7 +729,7 @@ test "alignment functions - smoke test" { | ... | @@ -729,7 +729,7 @@ test "alignment functions - smoke test" { |
| 729 | const arm = std.Target.Cpu.Arch.arm; | 729 | const arm = std.Target.Cpu.Arch.arm; |
| 730 | target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm, .none); | 730 | target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm, .none); |
| 731 | target.cpu = std.Target.Cpu.baseline(arm, target.os); | 731 | target.cpu = std.Target.Cpu.baseline(arm, target.os); |
| 732 | target.abi = std.Target.Abi.default(arm, target.os); | 732 | target.abi = std.Target.Abi.default(arm, target.os.tag); |
| 733 | | 733 | |
| 734 | try std.testing.expect(!isTlsSupported(target)); | 734 | try std.testing.expect(!isTlsSupported(target)); |
| 735 | try std.testing.expect(ignoreNonZeroSizedBitfieldTypeAlignment(target)); | 735 | try std.testing.expect(ignoreNonZeroSizedBitfieldTypeAlignment(target)); |