From bc380b242d758fd0342f50ea882272c14fed9db8 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 22 Apr 2020 10:29:15 +1000 Subject: wasm: add more debugging information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also fixes source maps not getting created in debug mode. Pick-to: 5.15 Fixes: QTBUG-83607 Change-Id: I3ed388c4fef6c286fa452a1c700fa65c2a8f9529 Reviewed-by: Morten Johan Sørvig --- mkspecs/wasm-emscripten/qmake.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mkspecs') diff --git a/mkspecs/wasm-emscripten/qmake.conf b/mkspecs/wasm-emscripten/qmake.conf index a1880b4c22..2b108a5e90 100644 --- a/mkspecs/wasm-emscripten/qmake.conf +++ b/mkspecs/wasm-emscripten/qmake.conf @@ -53,9 +53,10 @@ EMCC_COMMON_LFLAGS_DEBUG = \ # -s SYSCALL_DEBUG=1 \ #print out sys calls, verbose # -s FS_LOG=1 \ #print out filesystem ops, verbose # -s SOCKET_DEBUG \ #print out socket,network data transfer - -s GL_DEBUG=1 + -s GL_DEBUG=1 \ + --profiling-funcs -QMAKE_LFLAGS_DEBUG += -g +QMAKE_LFLAGS_DEBUG += -g4 QMAKE_LFLAGS_RELEASE += -O2 QMAKE_COMPILER += emscripten -- cgit v1.2.3