Fixed -make-cache option and tests on caches

This commit is contained in:
Igor Chevdar
2019-12-10 18:57:39 +03:00
parent 298ac706a5
commit 6ec5443aef
2 changed files with 2 additions and 3 deletions
@@ -41,8 +41,7 @@ internal class Linker(val context: Context) {
}
private fun renameOutput() {
val libraryToAddToCache = context.configuration.get(KonanConfigKeys.LIBRARY_TO_ADD_TO_CACHE)
if (context.config.produce.isCache && !libraryToAddToCache.isNullOrEmpty()) {
if (context.config.produce.isCache) {
val outputFiles = context.config.outputFiles
val outputFile = java.io.File(outputFiles.mainFileMangled)
val outputDsymBundle = java.io.File(outputFiles.mainFileMangled + ".dSYM")
@@ -49,7 +49,7 @@ fun configureCacheTesting(project: Project): CacheTesting? {
it.commandLine(
"$dist/bin/konanc",
"-p", cacheKind.visibleName,
"-o", cacheFile,
"-o", "stlib-cache",
"-Xmake-cache=$stdlib",
"-no-default-libs", "-nostdlib",
"-g"