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 @@...@@ -6,6 +6,7 @@
6//! * aarch646//! * aarch64
7//! * arm7//! * arm
8//! * i3868//! * i386
9//! * hexagon
9//! * loongarch6410//! * loongarch64
10//! * mips11//! * mips
11//! * mips6412//! * mips64
...@@ -27,6 +28,7 @@...@@ -27,6 +28,7 @@
27//! - `-DARCH_aarch64`28//! - `-DARCH_aarch64`
28//! - `-DARCH_arm`29//! - `-DARCH_arm`
29//! - `-DARCH_i386`30//! - `-DARCH_i386`
31//! - `-DARCH_hexagon`
30//! - `-DARCH_loongarch64`32//! - `-DARCH_loongarch64`
31//! - `-DARCH_mips`33//! - `-DARCH_mips`
32//! - `-DARCH_mips64`34//! - `-DARCH_mips64`
...@@ -41,6 +43,7 @@...@@ -41,6 +43,7 @@
41//! * One of the following, corresponding to the CPU architecture family:43//! * One of the following, corresponding to the CPU architecture family:
42//! - `-DFAMILY_aarch64`44//! - `-DFAMILY_aarch64`
43//! - `-DFAMILY_arm`45//! - `-DFAMILY_arm`
46//! - `-DFAMILY_hexagon`
44//! - `-DFAMILY_loongarch`47//! - `-DFAMILY_loongarch`
45//! - `-DFAMILY_mips`48//! - `-DFAMILY_mips`
46//! - `-DFAMILY_powerpc`49//! - `-DFAMILY_powerpc`
...@@ -63,6 +66,7 @@ const Arch = enum {...@@ -63,6 +66,7 @@ const Arch = enum {
63 aarch64,66 aarch64,
64 arm,67 arm,
65 i386,68 i386,
69 hexagon,
66 loongarch64,70 loongarch64,
67 mips,71 mips,
68 mips64,72 mips64,
...@@ -77,6 +81,7 @@ const Arch = enum {...@@ -77,6 +81,7 @@ const Arch = enum {
77 pub fn ptrSize(arch: Arch) u16 {81 pub fn ptrSize(arch: Arch) u16 {
78 return switch (arch) {82 return switch (arch) {
79 .arm,83 .arm,
84 .hexagon,
80 .i386,85 .i386,
81 .mips,86 .mips,
82 .mipsn32,87 .mipsn32,
...@@ -112,6 +117,7 @@ const Arch = enum {...@@ -112,6 +117,7 @@ const Arch = enum {
112 .aarch64 => .aarch64,117 .aarch64 => .aarch64,
113 .arm => .arm,118 .arm => .arm,
114 .i386, .x86_64 => .x86,119 .i386, .x86_64 => .x86,
120 .hexagon => .hexagon,
115 .loongarch64 => .loongarch,121 .loongarch64 => .loongarch,
116 .mips, .mips64, .mipsn32 => .mips,122 .mips, .mips64, .mipsn32 => .mips,
117 .powerpc, .powerpc64 => .powerpc,123 .powerpc, .powerpc64 => .powerpc,
...@@ -124,6 +130,7 @@ const Arch = enum {...@@ -124,6 +130,7 @@ const Arch = enum {
124const Family = enum {130const Family = enum {
125 aarch64,131 aarch64,
126 arm,132 arm,
133 hexagon,
127 loongarch,134 loongarch,
128 mips,135 mips,
129 powerpc,136 powerpc,