From 30200edc1e65c2be37430f1267b94b414b37d9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 7 Apr 2025 18:59:53 +0200 Subject: [PATCH] gen_stubs: Add hexagon-linux-musl support. --- tools/gen_stubs.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/gen_stubs.zig b/tools/gen_stubs.zig index c5663fa825..31095399d3 100644 --- a/tools/gen_stubs.zig +++ b/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,