Native klib testing: a binary compatibility tweak.
Link versioned libraries against dependencies of the same version.
This commit is contained in:
committed by
Space
parent
4d2e3a2379
commit
7d13aaad24
@@ -38,8 +38,7 @@ class MultiModuleCompilerInvocations(
|
||||
val klibModulePath = moduleToKlibName(module.name, moduleVersion)
|
||||
libs.addAll(module.dependencies)
|
||||
|
||||
// When producing klibs link them against version 1 of multiversioned klibs.
|
||||
val dependencyVersion = 1
|
||||
val dependencyVersion = moduleVersion
|
||||
|
||||
val klibs = module.dependencies.flatMap { listOf("-l", moduleToKlibName(it, dependencyVersion)) }
|
||||
val repos = listOf("-r", "${executablePath}_version$dependencyVersion", "-r", outputDirectory)
|
||||
@@ -68,7 +67,7 @@ class MultiModuleCompilerInvocations(
|
||||
libs.addAll(f.module.dependencies)
|
||||
}
|
||||
|
||||
// When producing klibs link them against version 2 of multiversioned klibs.
|
||||
// When producing an executable link them against version 2 of multiversioned klibs.
|
||||
val dependencyVersion = 2
|
||||
|
||||
val friends = compileMain.flatMap { it.module.friends }.toSet()
|
||||
|
||||
Reference in New Issue
Block a user