summaryrefslogtreecommitdiff
path: root/src/wasm-emscripten.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-emscripten.h')
-rw-r--r--src/wasm-emscripten.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm-emscripten.h b/src/wasm-emscripten.h
index 0fca27056..6343c13d7 100644
--- a/src/wasm-emscripten.h
+++ b/src/wasm-emscripten.h
@@ -60,6 +60,12 @@ public:
void enforceStackLimit();
+ // clang uses name mangling to rename the argc/argv form of main to
+ // __main_argc_argv. Emscripten in non-standalone mode expects that function
+ // to be exported as main. This function renames __main_argc_argv to main
+ // as expected by emscripten.
+ void renameMainArgcArgv();
+
void exportWasiStart();
// Emits the data segments to a file. The file contains data from address base