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:
committed by
Space
parent
ad0d0ca47f
commit
1d3e72cef4
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user