From 56f6637279c55ea4606dd0081b924f9c3136bc71 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Fri, 12 Nov 2021 14:59:57 +0300 Subject: [PATCH] [K/N][build] Use JDK17 on macOS arm64 to prevent odd failures --- kotlin-native/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 08fd532faab..4cdfffd9dff 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -124,6 +124,10 @@ allprojects { loadCommandLineProperties() loadLocalProperties() setupClang(project) + + if (HostManager.host.name == "macos_arm64") { + JvmToolchain.configureJvmToolchain(project, JdkMajorVersion.JDK_17) + } } void setupHostAndTarget() {