Skip to content

Commit 9728d62

Browse files
huajingyun01normanmaurerderklaro
authored
Add support for LoongArch64 architecture (#12580)
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>
1 parent 1befae8 commit 9728d62

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

common/src/main/java/io/netty/util/internal/PlatformDependent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,9 @@ private static String normalizeArch(String value) {
15651565
if ("s390x".equals(value)) {
15661566
return "s390_64";
15671567
}
1568+
if ("loongarch64".equals(value)) {
1569+
return "loongarch_64";
1570+
}
15681571

15691572
return "unknown";
15701573
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,10 +1204,10 @@
12041204
</requireMavenVersion>
12051205
<requireProperty>
12061206
<regexMessage>
1207-
x86_64/AARCH64/PPCLE64/s390x_64 JDK must be used.
1207+
x86_64/AARCH64/PPCLE64/s390x_64/loongarch64 JDK must be used.
12081208
</regexMessage>
12091209
<property>os.detected.arch</property>
1210-
<regex>^(x86_64|aarch_64|ppcle_64|s390_64)$</regex>
1210+
<regex>^(x86_64|aarch_64|ppcle_64|s390_64|loongarch_64)$</regex>
12111211
</requireProperty>
12121212
</rules>
12131213
</configuration>

0 commit comments

Comments
 (0)