From 49ac9bb5173d92d12a973df3c64683aefff46160 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sun, 24 May 2020 21:45:09 +0200 Subject: 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 --- src/plugins/webassembly/webassemblyrunconfiguration.cpp | 1 + 1 file changed, 1 insertion(+) 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() }); } -- cgit v1.2.3