Wasm: don't emit wasm-runtime.js file in WASI mode

This commit is contained in:
Alexey Andreev 2022-11-06 21:41:09 +01:00
parent 34eb06f5f0
commit 8f4e4e811f

View File

@ -551,7 +551,9 @@ public class WasmTarget implements TeaVMTarget, TeaVMWasmHost {
emitC(module, buildTarget, getBaseName(outputName) + ".wasm.c");
}
emitRuntime(buildTarget, getBaseName(outputName) + ".wasm-runtime.js");
if (runtimeType == WasmRuntimeType.TEAVM) {
emitRuntime(buildTarget, getBaseName(outputName) + ".wasm-runtime.js");
}
}
private WasmFunction createStartFunction(NameProvider names) {