diff --git a/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java b/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java index 1eed35199..31e498624 100644 --- a/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java +++ b/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java @@ -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) {