Native: do not cache DependencyProcessor.localKonanDir

Caching is wrong when the compiler is working in Gradle daemon, because
the daemon can change the environment, while localKonanDir depends on
the environment.
This commit is contained in:
Svyatoslav Scherbina
2022-01-25 16:27:13 +03:00
committed by Space
parent ad0d0ca47f
commit 1d3e72cef4
@@ -222,9 +222,8 @@ class DependencyProcessor(dependenciesRoot: File,
}
companion object {
val localKonanDir: File by lazy {
File(System.getenv("KONAN_DATA_DIR") ?: (System.getProperty("user.home") + File.separator + ".konan"))
}
val localKonanDir: File
get() = File(System.getenv("KONAN_DATA_DIR") ?: (System.getProperty("user.home") + File.separator + ".konan"))
@JvmStatic
val defaultDependenciesRoot: File