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 1befae8 commit 9728d62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -1565,6 +1565,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 @@ -1204,10 +1204,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 9728d62

Please sign in to comment.