[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
@@ -235,6 +235,9 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-Xerror-tolerance-policy", description = "Set up error tolerance policy (NONE, SEMANTIC, SYNTAX, ALL)")
var errorTolerancePolicy: String? by NullableStringFreezableVar(null)
@Argument(value = "-Xpartial-linkage", description = "Allow unlinked symbols")
var partialLinkage: Boolean by FreezableVar(false)
@Argument(value = "-Xwasm", description = "Use experimental WebAssembly compiler backend")
var wasm: Boolean by FreezableVar(false)