[Wasm] Support WASI target in K2

- Support WASI mode in CLI and test infrastructure
- Add external declaration checker
- Split Fir diagnostic lists into Base, JS and WASI

#KT-56849 Fixed
This commit is contained in:
Svyatoslav Kuzmich
2023-11-22 15:57:51 +01:00
committed by Space Team
parent f26b0a5be6
commit e901629cf0
20 changed files with 216 additions and 27 deletions
@@ -5,6 +5,8 @@
package org.jetbrains.kotlin.js.config
import org.jetbrains.kotlin.config.CompilerConfiguration
enum class WasmTarget {
JS,
WASI;
@@ -16,4 +18,7 @@ enum class WasmTarget {
else -> null
}
}
}
}
val CompilerConfiguration.wasmTarget: WasmTarget
get() = get(JSConfigurationKeys.WASM_TARGET, /* defaultValue = */ WasmTarget.JS)