[JS IR] Add CLI flag and configuration key about partial linkage

- make possible to turn on/off linkage if klib contains unbound symbols
 - update jsExtraHelp test data
This commit is contained in:
Roman Artemev
2021-11-16 13:28:28 +03:00
committed by TeamCityServer
parent 8381badcc4
commit 7d8f71d107
4 changed files with 9 additions and 0 deletions
@@ -136,6 +136,8 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
configuration.put(JSConfigurationKeys.TRANSITIVE_LIBRARIES, libraries)
configuration.put(JSConfigurationKeys.REPOSITORIES, repositories)
configuration.put(JSConfigurationKeys.PARTIAL_LINKAGE, arguments.partialLinkage)
val commonSourcesArray = arguments.commonSources
val commonSources = commonSourcesArray?.toSet() ?: emptySet()
for (arg in arguments.freeArgs) {