gen_stubs: Add hexagon-linux-musl support.

This commit is contained in:
Alex Rønne Petersen 2025-04-07 18:59:53 +02:00
parent cd58615c17
commit 30200edc1e
No known key found for this signature in database

View file

@ -6,6 +6,7 @@
//! * aarch64
//! * arm
//! * i386
//! * hexagon
//! * loongarch64
//! * mips
//! * mips64
@ -27,6 +28,7 @@
//! - `-DARCH_aarch64`
//! - `-DARCH_arm`
//! - `-DARCH_i386`
//! - `-DARCH_hexagon`
//! - `-DARCH_loongarch64`
//! - `-DARCH_mips`
//! - `-DARCH_mips64`
@ -41,6 +43,7 @@
//! * One of the following, corresponding to the CPU architecture family:
//! - `-DFAMILY_aarch64`
//! - `-DFAMILY_arm`
//! - `-DFAMILY_hexagon`
//! - `-DFAMILY_loongarch`
//! - `-DFAMILY_mips`
//! - `-DFAMILY_powerpc`
@ -63,6 +66,7 @@ const Arch = enum {
aarch64,
arm,
i386,
hexagon,
loongarch64,
mips,
mips64,
@ -77,6 +81,7 @@ const Arch = enum {
pub fn ptrSize(arch: Arch) u16 {
return switch (arch) {
.arm,
.hexagon,
.i386,
.mips,
.mipsn32,
@ -112,6 +117,7 @@ const Arch = enum {
.aarch64 => .aarch64,
.arm => .arm,
.i386, .x86_64 => .x86,
.hexagon => .hexagon,
.loongarch64 => .loongarch,
.mips, .mips64, .mipsn32 => .mips,
.powerpc, .powerpc64 => .powerpc,
@ -124,6 +130,7 @@ const Arch = enum {
const Family = enum {
aarch64,
arm,
hexagon,
loongarch,
mips,
powerpc,