netty: fix natives name on arm architecture

This should fix the build (again) on the raspberry pi. See #51
This commit is contained in:
Bixilon 2023-04-24 13:31:25 +02:00
parent a96020dcfa
commit c84baf4bcc
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -377,7 +377,7 @@ dependencies {
if (os == OSTypes.LINUX) {
val nettyNatives = when (architecture) {
Architectures.AMD64, Architectures.X86 -> "x86_64"
Architectures.ARM, Architectures.AARCH64 -> "aarch64"
Architectures.ARM, Architectures.AARCH64 -> "aarch_64"
else -> throw IllegalArgumentException("Can not determinate netty natives for $architecture")
}
implementation("io.netty", "netty-transport-native-epoll", nettyVersion, classifier = "linux-$nettyNatives")