diff options
Diffstat (limited to 'src/tools/wasm2js.cpp')
-rw-r--r-- | src/tools/wasm2js.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/wasm2js.cpp b/src/tools/wasm2js.cpp index 8e6ab074f..cf2532c6c 100644 --- a/src/tools/wasm2js.cpp +++ b/src/tools/wasm2js.cpp @@ -838,6 +838,14 @@ int main(int argc, const char* argv[]) { "form)", Options::Arguments::Zero, [&](Options* o, const std::string& argument) { flags.emscripten = true; }) + .add( + "--symbols-file", + "", + "Emit a symbols file that maps function indexes to their original names", + Options::Arguments::One, + [&](Options* o, const std::string& argument) { + flags.symbolsFile = argument; + }) .add_positional("INFILE", Options::Arguments::One, [](Options* o, const std::string& argument) { |