24 lines
920 B
Diff
24 lines
920 B
Diff
From 2c52801962444baa444401b8fafd09bd6cfab92b Mon Sep 17 00:00:00 2001
|
|
From: Dingli Zhang <dingli@iscas.ac.cn>
|
|
Date: Thu, 9 May 2024 00:02:35 +0800
|
|
Subject: [PATCH] Add support for riscv64
|
|
|
|
---
|
|
src/main/java/com/github/os72/protocjar/PlatformDetector.java | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/main/java/com/github/os72/protocjar/PlatformDetector.java b/src/main/java/com/github/os72/protocjar/PlatformDetector.java
|
|
index 7a99348..b8f08e5 100644
|
|
--- a/src/main/java/com/github/os72/protocjar/PlatformDetector.java
|
|
+++ b/src/main/java/com/github/os72/protocjar/PlatformDetector.java
|
|
@@ -211,6 +211,9 @@ private static String normalizeArch(String value) {
|
|
if ("ppc64le".equals(value)) {
|
|
return "ppcle_64";
|
|
}
|
|
+ if ("riscv64".equals(value)) {
|
|
+ return "riscv64";
|
|
+ }
|
|
if ("s390".equals(value)) {
|
|
return "s390_32";
|
|
}
|