commit 033d251626822ccc5aae40ad8a02ad885bdcd2e9 (tree)
parent 44c80fc6dcf91a3fb1bfaeb12b27087b2fcd9283
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Fri, 26 Sep 2025 16:10:15 +0200
std.builtin: define VaList for arc, csky, lanai, m68k, msp430, nvptx, ve, xcore
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
@@ -898,15 +898,22 @@ pub const VaListXtensa = extern struct {
/// therefore must be kept in sync with the compiler implementation.
pub const VaList = switch (builtin.cpu.arch) {
.amdgcn,
+ .msp430,
+ .nvptx,
+ .nvptx64,
.powerpc64,
.powerpc64le,
.x86,
=> *u8,
+ .arc,
.avr,
.bpfel,
.bpfeb,
+ .csky,
+ .lanai,
.loongarch32,
.loongarch64,
+ .m68k,
.mips,
.mipsel,
.mips64,
@@ -919,8 +926,10 @@ pub const VaList = switch (builtin.cpu.arch) {
.sparc64,
.spirv32,
.spirv64,
+ .ve,
.wasm32,
.wasm64,
+ .xcore,
=> *anyopaque,
.aarch64, .aarch64_be => switch (builtin.os.tag) {
.driverkit, .ios, .macos, .tvos, .visionos, .watchos, .windows => *u8,