Skip to content

Commit

Permalink
target: update std.Target.Cpu.baseline calls with os argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Oct 17, 2024
1 parent 7a8a04e commit 7f3e780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ pub fn isPICDefaultForced(target: std.Target) DefaultPIStatus {
test "alignment functions - smoke test" {
var target: std.Target = undefined;
const x86 = std.Target.Cpu.Arch.x86_64;
target.cpu = std.Target.Cpu.baseline(x86);
target.cpu = std.Target.Cpu.baseline(x86, .{ .tag = .linux, .version_range = std.Target.Os.VersionRange.default(.linux, x86) });
target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86);
target.abi = std.Target.Abi.default(x86, target.os);

Expand All @@ -961,7 +961,7 @@ test "alignment functions - smoke test" {
try std.testing.expect(systemCompiler(target) == .gcc);

const arm = std.Target.Cpu.Arch.arm;
target.cpu = std.Target.Cpu.baseline(arm);
target.cpu = std.Target.Cpu.baseline(arm, .{ .tag = .linux, .version_range = std.Target.Os.VersionRange.default(.linux, arm) });
target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm);
target.abi = std.Target.Abi.default(arm, target.os);

Expand Down

0 comments on commit 7f3e780

Please sign in to comment.