Native: do not cache DependencyDirectories.localKonanDir
Caching is wrong when this code is running 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
b4fb0e9894
commit
544447e67e
@@ -8,9 +8,8 @@ package org.jetbrains.kotlin.konan.util
|
||||
import java.io.File
|
||||
|
||||
object DependencyDirectories {
|
||||
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