mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
gen_stubs: Add hexagon-linux-musl support.
This commit is contained in:
parent
cd58615c17
commit
30200edc1e
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue