Skip to content

Commit

Permalink
Issue trustin#61. Added riscv64 support
Browse files Browse the repository at this point in the history
Signed-off-by: alex <zigmatulin@gmail.com>
  • Loading branch information
zinovya committed Oct 14, 2021
1 parent 6bd9cfa commit 14deac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* `s390_32` - if the value is `s390`
* `s390_64` if the value is `s390x`
* `riscv` if the value is `riscv`
* `riscv64` if the value is `riscv64`
* `e2k` if the value is `e2k`

Note: The bitness part of this property relies on the bitness of the JVM binary, e.g. You'll get the property that ends with `_32` if you run a 32-bit JVM on a 64-bit OS.
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/kr/motd/maven/os/Detector.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ private static String normalizeArch(String value) {
if ("riscv".equals(value)) {
return "riscv";
}
if ("riscv64".equals(value)) {
return "riscv64";
}
if ("e2k".equals(value)) {
return "e2k";
}
Expand Down

0 comments on commit 14deac5

Please sign in to comment.