[Wasm] Add kotlin wasm wasi mode compiler flag
This commit is contained in:
committed by
Space Team
parent
7c7aa98875
commit
750653e4b3
+1
@@ -72,6 +72,7 @@ fun copyK2JSCompilerArguments(from: K2JSCompilerArguments, to: K2JSCompilerArgum
|
||||
to.wasmEnableAsserts = from.wasmEnableAsserts
|
||||
to.wasmGenerateWat = from.wasmGenerateWat
|
||||
to.wasmKClassFqn = from.wasmKClassFqn
|
||||
to.wasmTarget = from.wasmTarget
|
||||
|
||||
return to
|
||||
}
|
||||
|
||||
+7
@@ -623,6 +623,13 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(value = "-Xwasm-target", description = "Set up Wasm target (wasm-js or wasm-wasi)")
|
||||
var wasmTarget: String? = null
|
||||
set(value) {
|
||||
checkFrozen()
|
||||
field = if (value.isNullOrEmpty()) null else value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-Xforce-deprecated-legacy-compiler-usage",
|
||||
description = "The flag is used only for our inner infrastructure. It will be removed soon, so it's unsafe to use it nowadays."
|
||||
|
||||
Reference in New Issue
Block a user