diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-05-24 21:45:09 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-05-25 06:32:51 +0000 |
commit | 49ac9bb5173d92d12a973df3c64683aefff46160 (patch) | |
tree | d6df3d3344a9d82bd3f22bd804333e079adf0b40 | |
parent | c25a8c0a586956dec15153a8682863566496bbae (diff) |
WebAssembly: Fix run configuration for Qt 5.15 app with emsdk 1.39.x
With Emscripten SDK 1.39.x, emrun quits and shuts down the web server
before the complete WebAssembly application can be fetched by the
browser.
Adding "--serve_after_close" to the emrun call restores the original
behavior. That parameter is accepted by previous Emscripten SDK versions
and seems to not change how it used behave in earlier versions.
Task-number: QTCREATORBUG-24072
Change-Id: Ie43604d42eb9c5a7cccd09fdf1c33391dc31098d
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/webassembly/webassemblyrunconfiguration.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/webassembly/webassemblyrunconfiguration.cpp b/src/plugins/webassembly/webassemblyrunconfiguration.cpp index 2bb8861b71..977e61b0fe 100644 --- a/src/plugins/webassembly/webassemblyrunconfiguration.cpp +++ b/src/plugins/webassembly/webassemblyrunconfiguration.cpp @@ -51,6 +51,7 @@ static CommandLine emrunCommand(Target *target, const QString &browser, const QS "--browser", browser, "--port", port, "--no_emrun_detect", + "--serve_after_close", html.toString() }); } |