Fixed -make-cache option and tests on caches
This commit is contained in:
+1
-2
@@ -41,8 +41,7 @@ internal class Linker(val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun renameOutput() {
|
private fun renameOutput() {
|
||||||
val libraryToAddToCache = context.configuration.get(KonanConfigKeys.LIBRARY_TO_ADD_TO_CACHE)
|
if (context.config.produce.isCache) {
|
||||||
if (context.config.produce.isCache && !libraryToAddToCache.isNullOrEmpty()) {
|
|
||||||
val outputFiles = context.config.outputFiles
|
val outputFiles = context.config.outputFiles
|
||||||
val outputFile = java.io.File(outputFiles.mainFileMangled)
|
val outputFile = java.io.File(outputFiles.mainFileMangled)
|
||||||
val outputDsymBundle = java.io.File(outputFiles.mainFileMangled + ".dSYM")
|
val outputDsymBundle = java.io.File(outputFiles.mainFileMangled + ".dSYM")
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ fun configureCacheTesting(project: Project): CacheTesting? {
|
|||||||
it.commandLine(
|
it.commandLine(
|
||||||
"$dist/bin/konanc",
|
"$dist/bin/konanc",
|
||||||
"-p", cacheKind.visibleName,
|
"-p", cacheKind.visibleName,
|
||||||
"-o", cacheFile,
|
"-o", "stlib-cache",
|
||||||
"-Xmake-cache=$stdlib",
|
"-Xmake-cache=$stdlib",
|
||||||
"-no-default-libs", "-nostdlib",
|
"-no-default-libs", "-nostdlib",
|
||||||
"-g"
|
"-g"
|
||||||
|
|||||||
Reference in New Issue
Block a user