[K/N] Don't check for MSVC on Linux and macOS hosts

This commit is contained in:
Sergey Bogolepov
2021-08-22 14:44:19 +07:00
committed by Space
parent 1381221ef8
commit c50ae1ffe6
@@ -34,11 +34,19 @@ class MingwConfigurablesImpl(target: KonanTarget, properties: Properties, baseDi
}
}
override val dependencies
get() = super.dependencies + when (windowsSdkPartsProvider) {
private val windowsHostDependencies by lazy {
when (windowsSdkPartsProvider) {
WindowsSdkPartsProvider.InternalServer -> listOf(windowsKitParts, msvcParts)
WindowsSdkPartsProvider.Local -> emptyList()
}
}
override val dependencies
get() = super.dependencies + if (HostManager.hostIsMingw) {
windowsHostDependencies
} else {
emptyList()
}
}
private fun createCustomWindowsKitPath(windowsKitParts: Path): WindowsKit.CustomPath {