[K/N][caches] Removed old slow and hacky version of per-file caches building

This commit is contained in:
Igor Chevdar
2022-09-09 14:20:54 +03:00
committed by Space
parent 9250de42a5
commit 1963860a92
14 changed files with 29 additions and 93 deletions
@@ -286,19 +286,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(CACHE_DIRECTORIES, cacheDirectories)
put(CACHED_LIBRARIES, parseCachedLibraries(arguments, configuration))
val filesToCache = arguments.filesToCache
if (outputKind == CompilerOutputKind.PRELIMINARY_CACHE && filesToCache.isNullOrEmpty())
configuration.report(ERROR, "preliminary_cache only supported for per-file caches")
filesToCache?.let { put(FILES_TO_CACHE, it.toList()) }
put(MAKE_PER_FILE_CACHE, arguments.makePerFileCache)
putIfNotNull(BATCHED_PER_FILE_CACHE_BUILD, when (arguments.batchedPerFileCacheBuild) {
null -> null
"enable" -> true
"disable" -> false
else -> {
configuration.report(ERROR, "Expected 'enable' or 'disable' for batchedPerFileCacheBuild")
false
}
})
parseShortModuleName(arguments, configuration, outputKind)?.let {
put(SHORT_MODULE_NAME, it)