Skip to content

Commit 6b7bdf7

Browse files
committed
Adds support for Linux on Z #193
1 parent 4d083a7 commit 6b7bdf7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/kotlin/com/github/gradle/node/util/PlatformHelper.kt

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ open class PlatformHelper constructor(private val props: Properties = System.get
2525
arch == "arm" || arch.startsWith("aarch") -> property("uname")
2626
.mapIf({ it == "armv8l" || it == "aarch64" }) { "arm64" }
2727
arch == "ppc64le" -> "ppc64le"
28+
arch == "s390x" -> "s390x"
2829
arch.contains("64") -> "x64"
2930
else -> "x86"
3031
}

src/test/groovy/com/github/gradle/node/util/PlatformHelperTest.groovy

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class PlatformHelperTest extends Specification {
3232
'Linux' | 'x86' | 'linux' | 'x86' | false
3333
'Linux' | 'x86_64' | 'linux' | 'x64' | false
3434
'Linux' | 'ppc64le' | 'linux' | 'ppc64le' | false
35+
'Linux' | 's390x' | 'linux' | 's390x' | false
3536
'SunOS' | 'x86' | 'sunos' | 'x86' | false
3637
'SunOS' | 'x86_64' | 'sunos' | 'x64' | false
3738
}

0 commit comments

Comments
 (0)