From ef8c32d6d57c43324aa6a33c83cfba451755b388 Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Wed, 15 May 2024 10:12:05 -0700 Subject: [PATCH] target: Handle new LLVM18 cpus / OS's --- src/aro/target.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/aro/target.zig b/src/aro/target.zig index cf04feab..0e289575 100644 --- a/src/aro/target.zig +++ b/src/aro/target.zig @@ -500,6 +500,7 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target { .wasm32, .renderscript32, .aarch64_32, + .spirv, .spirv32, .loongarch32, .dxil, @@ -591,6 +592,7 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target { .riscv32 => copy.cpu.arch = .riscv64, .sparc => copy.cpu.arch = .sparc64, .spir => copy.cpu.arch = .spir64, + .spirv => copy.cpu.arch = .spirv64, .spirv32 => copy.cpu.arch = .spirv64, .thumb => copy.cpu.arch = .aarch64, .thumbeb => copy.cpu.arch = .aarch64_be, @@ -659,6 +661,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { .hsail64 => "hsail64", .spir => "spir", .spir64 => "spir64", + .spirv => "spirv", .spirv32 => "spirv32", .spirv64 => "spirv64", .kalimba => "kalimba", @@ -717,6 +720,8 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { .driverkit => "driverkit", .shadermodel => "shadermodel", .liteos => "liteos", + .visionos => "xros", + .serenity => "serenity", .opencl, .glsl450, .vulkan,