Skip to content

Commit 70a5248

Browse files
authored
Merge pull request #194 from node-gradle/issue-193
Adds support for Linux on Z
2 parents 4d083a7 + 6b7bdf7 commit 70a5248

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)