Commit d3ba541034

Jakub Konka <kubkon@jakubkonka.com>
2024-05-09 22:00:17
codegen/llvm: handle missing Apple targets
1 parent 39adc22
Changed files (1)
src
codegen
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,
         },