Skip to content

Commit

Permalink
Tolerate os.arch being set to riscv or riscv64 (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rushton <[email protected]>
  • Loading branch information
lumpfish authored Apr 1, 2021
1 parent de9826f commit c1687ef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ private static String calcArchName()
} else if(osArch.contains("aarch64")) {
// if the current system is aarch64 use arm as the osArch
osArch = "arm";
} else if(osArch.contains("riscv")) {
// The openj9 jdk sets os.arch to riscv, the bisheng jdk sets it to riscv64
osArch = "riscv";
} else if (osArch.length() == 4
&& osArch.charAt(0) == 'i'
&& Character.isDigit(osArch.charAt(1))
Expand Down

0 comments on commit c1687ef

Please sign in to comment.