[Gradle, JS] Fix architecture detection for M1 in NodeJsPlatform

This commit is contained in:
Simon Ogorodnik
2021-05-27 13:38:46 +03:00
committed by teamcityserver
parent 68c3f30aa7
commit 021d053cfe
@@ -32,6 +32,7 @@ internal object NodeJsPlatform {
val architecture: String = run {
val arch = property("os.arch").toLowerCase()
when {
arch == "aarch64" -> ARM64
arch.contains("64") -> X64
arch == "arm" -> {
// as Java just returns "arm" on all ARM variants, we need a system call to determine the exact arch