Fine tuned compiler version compatibility rules for now.
This commit is contained in:
committed by
alexander-gorshenev
parent
5fcb5edac8
commit
d416417f36
@@ -209,8 +209,8 @@ internal fun SearchPathResolverWithTarget.libraryMatch(candidate: KonanLibraryIm
|
|||||||
|
|
||||||
if (candidateCompilerVersion == null ||
|
if (candidateCompilerVersion == null ||
|
||||||
knownCompilerVersions != null &&
|
knownCompilerVersions != null &&
|
||||||
!knownCompilerVersions!!.contains(candidateCompilerVersion)) {
|
knownCompilerVersions!!.none { it.compatible(candidateCompilerVersion) } ) {
|
||||||
logger("skipping $candidatePath. The compiler versions don't match. Expected '${knownCompilerVersions?.map { it.toString(true, true) }}', found '${candidateCompilerVersion?.toString(true, true)}'")
|
logger("skipping $candidatePath. The compiler versions don't match. Expected '${knownCompilerVersions?.map { it.toString(false, false) }}', found '${candidateCompilerVersion?.toString(true, true)}'")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,3 +230,8 @@ internal fun SearchPathResolverWithTarget.libraryMatch(candidate: KonanLibraryIm
|
|||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun KonanVersion.compatible(other: KonanVersion) =
|
||||||
|
this.major == other.major
|
||||||
|
&& this.minor == other.minor
|
||||||
|
&& this.maintenance == other.maintenance
|
||||||
|
|||||||
Reference in New Issue
Block a user