aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig
index bd12ca9e70..247b783439 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -223,6 +223,10 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool {
/// than or equal to the number of behavior tests as the respective LLVM backend.
pub fn selfHostedBackendIsAsRobustAsLlvm(target: std.Target) bool {
if (target.cpu.arch.isSpirV()) return true;
+ if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) return switch (target.ofmt) {
+ .elf, .macho => true,
+ else => false,
+ };
return false;
}