Fix building dist without system toolchain

This commit is contained in:
Svyatoslav Scherbina
2017-04-10 12:20:55 +03:00
committed by SvyatoslavScherbina
parent a9ebb44c6d
commit 6cf55ce20d
+5 -5
View File
@@ -33,15 +33,15 @@ allprojects {
loadCommandLineProperties() loadCommandLineProperties()
loadLocalProperties() loadLocalProperties()
setupCompilationFlags() setupCompilationFlags()
setupClang() setupClang(project)
} }
void setupClang() { void setupClang(Project project) {
convention.plugins.execClang = new org.jetbrains.kotlin.ExecClang(project) project.convention.plugins.execClang = new org.jetbrains.kotlin.ExecClang(project)
plugins.withType(NativeComponentPlugin) { project.plugins.withType(NativeComponentPlugin) {
model { project.model {
toolChains { toolChains {
clang(Clang) { clang(Clang) {
clangPath.each { clangPath.each {