diff options
author | Eric Long <i@hack3r.moe> | 2024-03-21 21:36:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 19:06:42 +0530 |
commit | 976fa489fbd6ef1e74bea15f45a258c044c875fd (patch) | |
tree | 2ebb0b4a5a4c8a8920968f31ed88687f0f47b21d /ext/node | |
parent | b428989bc5f706bd17544d1d64ac7bb6cbd8102e (diff) |
feat(ext/node): add riscv64 in process.arch (#23016)
Rust triple for riscv64 is riscv64gc. Although there are no official
builds for architectures other than x86_64 and aarch64, Arch Linux
RISC-V has managed to package Deno on riscv64:
https://github.com/felixonmars/archriscv-packages/blob/master/deno/riscv64.patch
Ref: https://github.com/denoland/deno/issues/18702
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/_process/process.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts index 6dfb897dd..57450a521 100644 --- a/ext/node/polyfills/_process/process.ts +++ b/ext/node/polyfills/_process/process.ts @@ -19,6 +19,8 @@ export function arch(): string { return "x64"; } else if (core.build.arch == "aarch64") { return "arm64"; + } else if (core.build.arch == "riscv64gc") { + return "riscv64"; } else { throw Error("unreachable"); } |