std.Target: Handle ve in toElfMachine().

This commit is contained in:
Alex Rønne Petersen 2024-09-26 21:44:27 +02:00
parent 4ceefca14b
commit 2e3599c7d0
No known key found for this signature in database

View file

@ -867,6 +867,7 @@ pub fn toElfMachine(target: Target) std.elf.EM {
.sparc => if (Target.sparc.featureSetHas(target.cpu.features, .v9)) .SPARC32PLUS else .SPARC,
.sparc64 => .SPARCV9,
.spu_2 => .SPU_2,
.ve => .VE,
.x86 => .@"386",
.x86_64 => .X86_64,
.xcore => .XCORE,
@ -877,7 +878,6 @@ pub fn toElfMachine(target: Target) std.elf.EM {
.spirv,
.spirv32,
.spirv64,
.ve,
.wasm32,
.wasm64,
=> .NONE,