Skip to content

Commit

Permalink
feat(ext/node): add riscv64 in process.arch (#23016)
Browse files Browse the repository at this point in the history
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: #18702
  • Loading branch information
hack3ric authored Mar 21, 2024
1 parent b428989 commit 976fa48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/node/polyfills/_process/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 976fa48

Please sign in to comment.