Commit 30200edc1e

Alex Rønne Petersen <alex@alexrp.com>
2025-04-07 18:59:53
gen_stubs: Add hexagon-linux-musl support.
1 parent cd58615
Changed files (1)
tools/gen_stubs.zig
@@ -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,