From d3ba541034b9cce11c5dcd97a92eba0744700657 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 9 May 2024 22:00:17 +0200 Subject: [PATCH] codegen/llvm: handle missing Apple targets --- src/codegen/llvm.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 6ba881b03a..84692e9a03 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -618,7 +618,7 @@ const DataLayoutBuilder = struct { abi = size; pref = size; } else switch (self.target.os.tag) { - .macos, .ios => {}, + .macos, .ios, .watchos, .tvos, .visionos => {}, .uefi, .windows => { pref = size; force_abi = size >= 32; @@ -11578,7 +11578,7 @@ fn ccAbiPromoteInt( else => return null, }; return switch (target.os.tag) { - .macos => switch (int_info.bits) { + .macos, .ios, .watchos, .tvos, .visionos => switch (int_info.bits) { 0...16 => int_info.signedness, else => null, },