From cf868fd4c63e64717cb3ace7718add55e334e02a Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 18 Aug 2025 08:34:03 +0200 Subject: [PATCH] install.sh: check if on riscv64, and if so bail out (#21924) ### What does this PR do? Solves https://github.com/oven-sh/bun/issues/21923 So: if on riscv64, bail out, and do not install the x86-64 version of bun ### How did you verify your code works? On my RISCV system: ``` git clone https://github.com/sanderjo/bun.git sjo-oven-sh-bun cd sjo-oven-sh-bun/ git branch -a git checkout origin/detect_and_refuse_riscv64 grep -irn riscv64 src/cli/install.sh ``` Yes, correct. And then: ``` sander@riscv:~/git/sjo-oven-sh-bun$ bash src/cli/install.sh error: Not supported on riscv64 sander@riscv:~/git/sjo-oven-sh-bun$ ``` Good. Co-authored-by: sanderjo --- src/cli/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/install.sh b/src/cli/install.sh index e6f8634399..1decc1362b 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -73,6 +73,9 @@ case $platform in 'MINGW64'*) target=windows-x64 ;; +'Linux riscv64') + error 'Not supported on riscv64' + ;; 'Linux x86_64' | *) target=linux-x64 ;;