Skip to content

Commit 06ea97b

Browse files
authored
fix: update JvmVendorSpec for compatibility on Mac OS x86_64 (#10613)
2 parents c0c42f0 + 437f59a commit 06ea97b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

quality/konsist/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ plugins {
22
id("org.jetbrains.kotlin.jvm")
33
}
44

5+
val os = System.getProperty("os.name").lowercase()
6+
val arch = System.getProperty("os.arch").lowercase()
7+
val isMacX64 = os.contains("mac") && arch == "x86_64"
8+
59
kotlin {
610
jvmToolchain {
711
languageVersion = JavaLanguageVersion.of(11)
8-
vendor = JvmVendorSpec.ADOPTIUM
12+
// Fix for ADOPTIUM not working on Mac OS x86_64
13+
vendor.set(if (isMacX64) JvmVendorSpec.AZUL else JvmVendorSpec.ADOPTIUM)
914
}
1015
}
1116

0 commit comments

Comments
 (0)