From 25ebb3fa750eebcddf63945c0a452d20481b92e7 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Wed, 28 Apr 2021 14:18:36 +0700 Subject: [PATCH] Remove obsolete Gradle native plugin configuration --- kotlin-native/build.gradle | 40 -------------------------------------- 1 file changed, 40 deletions(-) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 083018298d6..12153b8967e 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -145,46 +145,6 @@ void setupClang(Project project) { project.convention.plugins.platformManager = project.project(":kotlin-native").ext.platformManager project.convention.plugins.execClang = new org.jetbrains.kotlin.ExecClang(project) - - project.plugins.withType(NativeComponentPlugin) { - project.model { - if (isWindows()) { - platforms { - host { - architecture 'x86_64' - } - } - - components { - withType(NativeComponentSpec) { - targetPlatform 'host' - } - } - - toolChains { - gcc(Gcc) { - path "$llvmDir/bin" - } - } - } else { - - toolChains { - clang(Clang) { - hostPlatform.clang.clangPaths.each { - path it - } - - eachPlatform { // TODO: will not work when cross-compiling - [cCompiler, cppCompiler, linker].each { - it.withArguments { it.addAll(project.hostPlatform.clang.clangArgs) } - } - - } - } - } - } - } - } } void loadLocalProperties() {