mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
compiler: let LLVM set the 64bit feature from the target triple on powerpc targets
This commit is contained in:
@@ -6808,6 +6808,7 @@ pub fn addCCArgs(
|
||||
// We communicate these to Clang through the dedicated options.
|
||||
if (std.mem.startsWith(u8, llvm_name, "soft-float") or
|
||||
std.mem.startsWith(u8, llvm_name, "hard-float") or
|
||||
(target.cpu.arch.isPowerPC() and std.mem.startsWith(u8, llvm_name, "64bit")) or
|
||||
(target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or
|
||||
(target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain")))
|
||||
continue;
|
||||
|
||||
@@ -347,6 +347,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
|
||||
// See https://github.com/ziglang/zig/issues/23539
|
||||
if (target_util.isDynamicAMDGCNFeature(target, feature)) continue;
|
||||
|
||||
if (target.cpu.arch.isPowerPC() and @as(std.Target.powerpc.Feature, @enumFromInt(feature.index)) == .@"64bit") continue;
|
||||
if (target.cpu.arch.isX86() and @as(std.Target.x86.Feature, @enumFromInt(feature.index)) == .x32) continue;
|
||||
|
||||
var is_enabled = target.cpu.features.isEnabled(feature.index);
|
||||
|
||||
Reference in New Issue
Block a user