Skip to content

Commit

Permalink
Add support for LoongArch64 architecture (#12580)
Browse files Browse the repository at this point in the history
Add support for LoongArch64 architecture

Motivation:

PlatformDependent didn't support detecting LoongArch64.

Modification:

Add code to detect architecture.

Result:

Be able to detect LoongArch64.


Co-authored-by: Norman Maurer <norman_maurer@apple.com>
Co-authored-by: Pasqual Koschmieder <pasqual.koschmieder@gmail.com>
  • Loading branch information
3 people committed Jul 11, 2022
1 parent 367697d commit 86a09e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -1504,6 +1504,9 @@ private static String normalizeArch(String value) {
if ("s390x".equals(value)) {
return "s390_64";
}
if ("loongarch64".equals(value)) {
return "loongarch_64";
}

return "unknown";
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -1012,10 +1012,10 @@
</requireMavenVersion>
<requireProperty>
<regexMessage>
x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
x86_64/AARCH64/PPCLE64/s390x_64/loongarch64 JDK must be used.
</regexMessage>
<property>os.detected.arch</property>
<regex>^(x86_64|aarch_64|ppcle_64|s390_64)$</regex>
<regex>^(x86_64|aarch_64|ppcle_64|s390_64|loongarch_64)$</regex>
</requireProperty>
</rules>
</configuration>
Expand Down

0 comments on commit 86a09e3

Please sign in to comment.