Skip to content

Commit 0cf5982

Browse files
committed
add loongarch64 support
Signed-off-by: yzewei <[email protected]>
1 parent b292f15 commit 0cf5982

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
## ARMv6
6464
- { os: 'ubuntu-latest', target: 'arm-unknown-linux-gnueabihf', cross: true }
6565
- { os: 'ubuntu-latest', target: 'arm-unknown-linux-musleabihf', cross: true }
66+
## LOONGARCH64
67+
- { os: 'ubuntu-latest', target: 'loongarch64-unknown-linux-gnu', cross: true }
68+
6669
toolchain:
6770
- 1.46.0 # MSRV
6871
- stable

heim-host/src/os/linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std::net::IpAddr;
55
use crate::Pid;
66

77
cfg_if::cfg_if! {
8-
// aarch64-unknown-linux-gnu has different type
9-
if #[cfg(all(target_arch = "aarch64", not(target_family = "musl")))] {
8+
// aarch64-unknown-linux-gnu and loongarch64-unknown-linux-gnu has different type
9+
if #[cfg(all(any(target_arch = "aarch64", target_arch = "loongarch64"), not(target_family = "musl")))] {
1010
/// User session ID.
1111
pub type SessionId = i64;
1212
} else {

0 commit comments

Comments
 (0)