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
|
//! * aarch64
|
||||||
//! * arm
|
//! * arm
|
||||||
//! * i386
|
//! * i386
|
||||||
|
//! * hexagon
|
||||||
//! * loongarch64
|
//! * loongarch64
|
||||||
//! * mips
|
//! * mips
|
||||||
//! * mips64
|
//! * mips64
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
//! - `-DARCH_aarch64`
|
//! - `-DARCH_aarch64`
|
||||||
//! - `-DARCH_arm`
|
//! - `-DARCH_arm`
|
||||||
//! - `-DARCH_i386`
|
//! - `-DARCH_i386`
|
||||||
|
//! - `-DARCH_hexagon`
|
||||||
//! - `-DARCH_loongarch64`
|
//! - `-DARCH_loongarch64`
|
||||||
//! - `-DARCH_mips`
|
//! - `-DARCH_mips`
|
||||||
//! - `-DARCH_mips64`
|
//! - `-DARCH_mips64`
|
||||||
|
|
@ -41,6 +43,7 @@
|
||||||
//! * One of the following, corresponding to the CPU architecture family:
|
//! * One of the following, corresponding to the CPU architecture family:
|
||||||
//! - `-DFAMILY_aarch64`
|
//! - `-DFAMILY_aarch64`
|
||||||
//! - `-DFAMILY_arm`
|
//! - `-DFAMILY_arm`
|
||||||
|
//! - `-DFAMILY_hexagon`
|
||||||
//! - `-DFAMILY_loongarch`
|
//! - `-DFAMILY_loongarch`
|
||||||
//! - `-DFAMILY_mips`
|
//! - `-DFAMILY_mips`
|
||||||
//! - `-DFAMILY_powerpc`
|
//! - `-DFAMILY_powerpc`
|
||||||
|
|
@ -63,6 +66,7 @@ const Arch = enum {
|
||||||
aarch64,
|
aarch64,
|
||||||
arm,
|
arm,
|
||||||
i386,
|
i386,
|
||||||
|
hexagon,
|
||||||
loongarch64,
|
loongarch64,
|
||||||
mips,
|
mips,
|
||||||
mips64,
|
mips64,
|
||||||
|
|
@ -77,6 +81,7 @@ const Arch = enum {
|
||||||
pub fn ptrSize(arch: Arch) u16 {
|
pub fn ptrSize(arch: Arch) u16 {
|
||||||
return switch (arch) {
|
return switch (arch) {
|
||||||
.arm,
|
.arm,
|
||||||
|
.hexagon,
|
||||||
.i386,
|
.i386,
|
||||||
.mips,
|
.mips,
|
||||||
.mipsn32,
|
.mipsn32,
|
||||||
|
|
@ -112,6 +117,7 @@ const Arch = enum {
|
||||||
.aarch64 => .aarch64,
|
.aarch64 => .aarch64,
|
||||||
.arm => .arm,
|
.arm => .arm,
|
||||||
.i386, .x86_64 => .x86,
|
.i386, .x86_64 => .x86,
|
||||||
|
.hexagon => .hexagon,
|
||||||
.loongarch64 => .loongarch,
|
.loongarch64 => .loongarch,
|
||||||
.mips, .mips64, .mipsn32 => .mips,
|
.mips, .mips64, .mipsn32 => .mips,
|
||||||
.powerpc, .powerpc64 => .powerpc,
|
.powerpc, .powerpc64 => .powerpc,
|
||||||
|
|
@ -124,6 +130,7 @@ const Arch = enum {
|
||||||
const Family = enum {
|
const Family = enum {
|
||||||
aarch64,
|
aarch64,
|
||||||
arm,
|
arm,
|
||||||
|
hexagon,
|
||||||
loongarch,
|
loongarch,
|
||||||
mips,
|
mips,
|
||||||
powerpc,
|
powerpc,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue