Skip to content

Commit 84557fa

Browse files
authored
Use platform-agnostic env variable with the JDK (#310)
1 parent 62ec3ca commit 84557fa

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.teamcity/utils.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@ const val releaseVersionParameter = "releaseVersion"
1212
const val libraryStagingRepoDescription = "kotlinx-benchmark"
1313

1414
val platforms = Platform.values()
15-
const val jdk = "JDK_18_x64"
15+
const val jdk = "JDK_17_0"
1616

1717
enum class Platform {
1818
Windows, Linux, MacOS;
1919
}
2020

21-
fun Platform.nativeTaskPrefix(): String = when(this) {
22-
Platform.Windows -> "mingwX64"
23-
Platform.Linux -> "linuxX64"
24-
Platform.MacOS -> "macosX64"
25-
}
2621
fun Platform.buildTypeName(): String = when (this) {
2722
Platform.Windows, Platform.Linux -> name
2823
Platform.MacOS -> "Mac OS X"
@@ -117,4 +112,4 @@ fun BuildType.dependsOnSnapshot(build: IdOwner, onFailure: FailureAction = Failu
117112
onDependencyCancel = FailureAction.CANCEL
118113
}
119114
}
120-
}
115+
}

0 commit comments

Comments
 (0)