diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-05-09 15:45:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-09 15:45:42 -0700 |
| commit | 68629fedefd46bad4feed7f9244a3208199d6a0e (patch) | |
| tree | 0d483126b4222796eea87349b79330bb76fc733e /lib/compiler/aro | |
| parent | c9ad1b51993e45942e38079325dcb7b5ce41e877 (diff) | |
| parent | 47e840a9b99c6ca371c89a73350617ba0cad877c (diff) | |
| download | zig-68629fedefd46bad4feed7f9244a3208199d6a0e.tar.gz zig-68629fedefd46bad4feed7f9244a3208199d6a0e.zip | |
Merge pull request #19918 from ziglang/xros
Add support for VisionOS
Diffstat (limited to 'lib/compiler/aro')
| -rw-r--r-- | lib/compiler/aro/aro/Compilation.zig | 4 | ||||
| -rw-r--r-- | lib/compiler/aro/aro/target.zig | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/compiler/aro/aro/Compilation.zig b/lib/compiler/aro/aro/Compilation.zig index 8329ad4405..d6b9b91780 100644 --- a/lib/compiler/aro/aro/Compilation.zig +++ b/lib/compiler/aro/aro/Compilation.zig @@ -912,12 +912,12 @@ fn generateVaListType(comp: *Compilation) !Type { const kind: Kind = switch (comp.target.cpu.arch) { .aarch64 => switch (comp.target.os.tag) { .windows => @as(Kind, .char_ptr), - .ios, .macos, .tvos, .watchos => .char_ptr, + .ios, .macos, .tvos, .watchos, .visionos => .char_ptr, else => .aarch64_va_list, }, .sparc, .wasm32, .wasm64, .bpfel, .bpfeb, .riscv32, .riscv64, .avr, .spirv32, .spirv64 => .void_ptr, .powerpc => switch (comp.target.os.tag) { - .ios, .macos, .tvos, .watchos, .aix => @as(Kind, .char_ptr), + .ios, .macos, .tvos, .watchos, .visionos, .aix => @as(Kind, .char_ptr), else => return Type{ .specifier = .void }, // unknown }, .x86, .msp430 => .char_ptr, diff --git a/lib/compiler/aro/aro/target.zig b/lib/compiler/aro/aro/target.zig index dcb4777de6..62f9ffad1a 100644 --- a/lib/compiler/aro/aro/target.zig +++ b/lib/compiler/aro/aro/target.zig @@ -706,6 +706,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { .ios => "ios", .tvos => "tvos", .watchos => "watchos", + .visionos => "xros", .driverkit => "driverkit", .shadermodel => "shadermodel", .liteos => "liteos", |
