diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-13 08:02:15 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-17 05:04:16 +0100 |
| commit | 0ef01c552100a8559bec5d17e6778f1cb652d403 (patch) | |
| tree | a4540fdee4b1fd8d046f85ead98cbb13273f362b /lib/compiler/aro | |
| parent | 424f9ba53289ab720c76ae06685168b1bf3f5a59 (diff) | |
| download | zig-0ef01c552100a8559bec5d17e6778f1cb652d403.tar.gz zig-0ef01c552100a8559bec5d17e6778f1cb652d403.zip | |
std.Target: Incorporate the Abi tag in VersionRange.default().
This is necessary to pick out the correct minimum OS version from the
std.zig.target.available_libcs list.
Diffstat (limited to 'lib/compiler/aro')
| -rw-r--r-- | lib/compiler/aro/aro/target.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler/aro/aro/target.zig b/lib/compiler/aro/aro/target.zig index b1ffcd6e7e..d3a20ee892 100644 --- a/lib/compiler/aro/aro/target.zig +++ b/lib/compiler/aro/aro/target.zig @@ -719,7 +719,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { test "alignment functions - smoke test" { var target: std.Target = undefined; const x86 = std.Target.Cpu.Arch.x86_64; - target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86); + target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86, .none); target.cpu = std.Target.Cpu.baseline(x86, target.os); target.abi = std.Target.Abi.default(x86, target.os); @@ -732,7 +732,7 @@ test "alignment functions - smoke test" { try std.testing.expect(systemCompiler(target) == .gcc); const arm = std.Target.Cpu.Arch.arm; - target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm); + target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm, .none); target.cpu = std.Target.Cpu.baseline(arm, target.os); target.abi = std.Target.Abi.default(arm, target.os); @@ -751,7 +751,7 @@ test "target size/align tests" { const x86 = std.Target.Cpu.Arch.x86; comp.target.cpu.arch = x86; comp.target.cpu.model = &std.Target.x86.cpu.i586; - comp.target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86); + comp.target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86, .none); comp.target.abi = std.Target.Abi.gnu; const tt: Type = .{ @@ -763,7 +763,7 @@ test "target size/align tests" { const arm = std.Target.Cpu.Arch.arm; comp.target.cpu = std.Target.Cpu.Model.toCpu(&std.Target.arm.cpu.cortex_r4, arm); - comp.target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm); + comp.target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm, .none); comp.target.abi = std.Target.Abi.none; const ct: Type = .{ |
