authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-07 18:59:53+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-11 02:28:35+02:00
log30200edc1e65c2be37430f1267b94b414b37d9c7
tree478e368b2c786f573b41f21af8352cf15f7b2ada
parentcd58615c17c0a1044a08fb8c12dbf81be9c4e5e3
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

gen_stubs: Add hexagon-linux-musl support.


1 files changed, 7 insertions(+), 0 deletions(-)

tools/gen_stubs.zig+7
......@@ -6,6 +6,7 @@
66//! * aarch64
77//! * arm
88//! * i386
9//! * hexagon
910//! * loongarch64
1011//! * mips
1112//! * mips64
......@@ -27,6 +28,7 @@
2728//! - `-DARCH_aarch64`
2829//! - `-DARCH_arm`
2930//! - `-DARCH_i386`
31//! - `-DARCH_hexagon`
3032//! - `-DARCH_loongarch64`
3133//! - `-DARCH_mips`
3234//! - `-DARCH_mips64`
......@@ -41,6 +43,7 @@
4143//! * One of the following, corresponding to the CPU architecture family:
4244//! - `-DFAMILY_aarch64`
4345//! - `-DFAMILY_arm`
46//! - `-DFAMILY_hexagon`
4447//! - `-DFAMILY_loongarch`
4548//! - `-DFAMILY_mips`
4649//! - `-DFAMILY_powerpc`
......@@ -63,6 +66,7 @@ const Arch = enum {
6366 aarch64,
6467 arm,
6568 i386,
69 hexagon,
6670 loongarch64,
6771 mips,
6872 mips64,
......@@ -77,6 +81,7 @@ const Arch = enum {
7781 pub fn ptrSize(arch: Arch) u16 {
7882 return switch (arch) {
7983 .arm,
84 .hexagon,
8085 .i386,
8186 .mips,
8287 .mipsn32,
......@@ -112,6 +117,7 @@ const Arch = enum {
112117 .aarch64 => .aarch64,
113118 .arm => .arm,
114119 .i386, .x86_64 => .x86,
120 .hexagon => .hexagon,
115121 .loongarch64 => .loongarch,
116122 .mips, .mips64, .mipsn32 => .mips,
117123 .powerpc, .powerpc64 => .powerpc,
......@@ -124,6 +130,7 @@ const Arch = enum {
124130const Family = enum {
125131 aarch64,
126132 arm,
133 hexagon,
127134 loongarch,
128135 mips,
129136 powerpc,