[JS IR] Manage cache root dir from IC cache updater

- pass cache root directory instead of dir list
 - manage klib cache dirs from cache updater
This commit is contained in:
Alexander Korepanov
2022-11-15 21:08:29 +01:00
committed by Space Team
parent c7589245c4
commit ec6a7094e6
5 changed files with 13 additions and 20 deletions
@@ -650,7 +650,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
val cacheUpdater = CacheUpdater(
mainModule = arguments.includes!!,
allModules = libraries,
icCachePaths = cacheDirectories,
icCacheRootDir = cacheDirectories.last(),
compilerConfiguration = configurationJs,
irFactory = { IrFactoryImplForJsIC(WholeWorldStageController()) },
mainArguments = mainCallArguments,