summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-emscripten.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
-rw-r--r--src/wasm/wasm-emscripten.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index 3aa6f5647..9b579fa25 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -1218,6 +1218,9 @@ void EmscriptenGlueGenerator::exportWasiStart() {
return;
}
Name _start = "_start";
+ if (wasm.getExportOrNull(_start)) {
+ return;
+ }
Builder builder(wasm);
auto* body = builder.makeDrop(builder.makeCall(
main,