summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_process
diff options
context:
space:
mode:
authorEric Long <i@hack3r.moe>2024-03-21 21:36:42 +0800
committerGitHub <noreply@github.com>2024-03-21 19:06:42 +0530
commit976fa489fbd6ef1e74bea15f45a258c044c875fd (patch)
tree2ebb0b4a5a4c8a8920968f31ed88687f0f47b21d /ext/node/polyfills/_process
parentb428989bc5f706bd17544d1d64ac7bb6cbd8102e (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/polyfills/_process')
-rw-r--r--ext/node/polyfills/_process/process.ts2
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");
}