diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-07 01:08:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-07 01:08:44 -0700 |
| commit | b071b10ce83609199577ff077fb117ed62c98fe7 (patch) | |
| tree | e7ab9b6278e96a518e9a668783715d7d23b204b5 /lib/compiler/aro | |
| parent | 8268d7be52fdcff9dde3020f65aeb48b76f4397e (diff) | |
| parent | 7d88bd0b9c4ca12235769a04c45842dab3b54827 (diff) | |
| download | zig-b071b10ce83609199577ff077fb117ed62c98fe7.tar.gz zig-b071b10ce83609199577ff077fb117ed62c98fe7.zip | |
Merge pull request #20894 from alexrp/target-cleanup-4
`std.Target`: Minor rework to some `isArch()` functions, fix some related issues throughout `std`
Diffstat (limited to 'lib/compiler/aro')
| -rw-r--r-- | lib/compiler/aro/aro/Toolchain.zig | 2 | ||||
| -rw-r--r-- | lib/compiler/aro/aro/target.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/aro/aro/Toolchain.zig b/lib/compiler/aro/aro/Toolchain.zig index 1313675f6c..fca44e07ec 100644 --- a/lib/compiler/aro/aro/Toolchain.zig +++ b/lib/compiler/aro/aro/Toolchain.zig @@ -89,7 +89,7 @@ pub fn discover(tc: *Toolchain) !void { .{ .unknown = {} } // TODO else if (target.cpu.arch.isMIPS()) .{ .unknown = {} } // TODO - else if (target.cpu.arch.isPPC()) + else if (target.cpu.arch.isPowerPC()) .{ .unknown = {} } // TODO else if (target.cpu.arch == .ve) .{ .unknown = {} } // TODO diff --git a/lib/compiler/aro/aro/target.zig b/lib/compiler/aro/aro/target.zig index 2f46ebd605..a876723302 100644 --- a/lib/compiler/aro/aro/target.zig +++ b/lib/compiler/aro/aro/target.zig @@ -264,7 +264,7 @@ pub fn systemCompiler(target: std.Target) LangOpts.Compiler { pub fn hasFloat128(target: std.Target) bool { if (target.cpu.arch.isWasm()) return true; if (target.isDarwin()) return false; - if (target.cpu.arch.isPPC() or target.cpu.arch.isPPC64()) return std.Target.powerpc.featureSetHas(target.cpu.features, .float128); + if (target.cpu.arch.isPowerPC()) return std.Target.powerpc.featureSetHas(target.cpu.features, .float128); return switch (target.os.tag) { .dragonfly, .haiku, |
