[K/N][perf] Workaround KGP bug when dirs are queried instantly
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import org.jetbrains.kotlin.konan.target.HostManager
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.rootBuildDirectory = file('../..')
|
ext.rootBuildDirectory = file('../..')
|
||||||
|
|
||||||
@@ -115,6 +117,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HostManager.hostIsMingw) {
|
||||||
fromPreset(presets.mingwX64, 'windows') {
|
fromPreset(presets.mingwX64, 'windows') {
|
||||||
binaries.all {
|
binaries.all {
|
||||||
linkerOpts = ["-L${getMingwPath()}/lib".toString()]
|
linkerOpts = ["-L${getMingwPath()}/lib".toString()]
|
||||||
@@ -125,7 +128,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (HostManager.hostIsLinux) {
|
||||||
fromPreset(presets.linuxX64, 'linux') {
|
fromPreset(presets.linuxX64, 'linux') {
|
||||||
compilations.main.cinterops {
|
compilations.main.cinterops {
|
||||||
libcurl {
|
libcurl {
|
||||||
@@ -133,6 +138,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (HostManager.hostIsMac) {
|
||||||
fromPreset(presets.macosX64, 'macosX64') {
|
fromPreset(presets.macosX64, 'macosX64') {
|
||||||
compilations.main.cinterops {
|
compilations.main.cinterops {
|
||||||
libcurl {
|
libcurl {
|
||||||
@@ -147,13 +155,14 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fromPreset(presets.js, 'js') {
|
fromPreset(presets.js, 'js') {
|
||||||
compilations.main.kotlinOptions {
|
compilations.main.kotlinOptions {
|
||||||
main = "noCall"
|
main = "noCall"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configure([findByName('windows'), findByName('linux'), findByName('macosX64'), findByName('macosArm64')]) {
|
configure([findByName('windows'), findByName('linux'), findByName('macosX64'), findByName('macosArm64')].findAll { it != null }) {
|
||||||
def isCurrentHost = (name == getHostName())
|
def isCurrentHost = (name == getHostName())
|
||||||
compilations.all {
|
compilations.all {
|
||||||
cinterops.all {
|
cinterops.all {
|
||||||
|
|||||||
Reference in New Issue
Block a user