Skip to content

Commit

Permalink
target: Handle new LLVM18 cpus / OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed May 15, 2024
1 parent ed3b422 commit ef8c32d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
.wasm32,
.renderscript32,
.aarch64_32,
.spirv,
.spirv32,
.loongarch32,
.dxil,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ef8c32d

Please sign in to comment.