Splitted KonanProperties into Configurables hierarchy.

Untangled Platfrom classes from the LinkStage and Distribution.
Simplified clang management a little.
This commit is contained in:
Alexander Gorshenev
2018-01-19 17:11:48 +03:00
committed by alexander-gorshenev
parent c5276cf6da
commit d4b47ac709
25 changed files with 653 additions and 558 deletions
@@ -135,7 +135,7 @@ val currentAbiVersion = 1
fun libraryInRepo(repository: File, name: String): File {
val resolver = KonanLibrarySearchPathResolver(
repositories = listOf(repository.absolutePath),
targetManager = null,
target = null,
distributionKlib = null,
localKonanDir = null,
skipCurrentDir = true
@@ -146,7 +146,7 @@ fun libraryInRepo(repository: File, name: String): File {
fun libraryInCurrentDir(name: String): File {
val resolver = KonanLibrarySearchPathResolver(
repositories = emptyList(),
targetManager = null,
target = null,
distributionKlib = null,
localKonanDir = null
)
@@ -156,7 +156,7 @@ fun libraryInCurrentDir(name: String): File {
fun libraryInRepoOrCurrentDir(repository: File, name: String): File {
val resolver = KonanLibrarySearchPathResolver(
repositories = listOf(repository.absolutePath),
targetManager = null,
target = null,
distributionKlib = null,
localKonanDir = null
)