[Gradle, JS] Fix architecture detection for M1 in NodeJsPlatform
This commit is contained in:
committed by
teamcityserver
parent
68c3f30aa7
commit
021d053cfe
+1
@@ -32,6 +32,7 @@ internal object NodeJsPlatform {
|
|||||||
val architecture: String = run {
|
val architecture: String = run {
|
||||||
val arch = property("os.arch").toLowerCase()
|
val arch = property("os.arch").toLowerCase()
|
||||||
when {
|
when {
|
||||||
|
arch == "aarch64" -> ARM64
|
||||||
arch.contains("64") -> X64
|
arch.contains("64") -> X64
|
||||||
arch == "arm" -> {
|
arch == "arm" -> {
|
||||||
// as Java just returns "arm" on all ARM variants, we need a system call to determine the exact arch
|
// as Java just returns "arm" on all ARM variants, we need a system call to determine the exact arch
|
||||||
|
|||||||
Reference in New Issue
Block a user