diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2021-11-18 10:29:46 +1000 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-12-14 09:47:23 +0000 |
commit | 7350b929783bc18cc02e46542a56d7211f0a1cad (patch) | |
tree | 03365924cbeb92d21fbbdf829348dd36eb26ef45 /mkspecs | |
parent | 3cf0e6983dd154993bdcd800d06b446a3bcb2bea (diff) |
wasm: remove deprecated argument for source maps
-g4 was deprecated in Emscripten 2.0.17, and since we are well past
that version we can safely use -gsource-map instead.
(cherry picked from commit 663c1b8827937562d714f85fa78b535896f726e7)
Change-Id: I497155619d6320661f6be0e220b52fa7d6ca0b8e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/wasm/wasm.prf | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mkspecs/features/wasm/wasm.prf b/mkspecs/features/wasm/wasm.prf index 2629e962c8..8c1da8749a 100644 --- a/mkspecs/features/wasm/wasm.prf +++ b/mkspecs/features/wasm/wasm.prf @@ -127,12 +127,7 @@ CONFIG(debug):!isEmpty(QT_WASM_SOURCE_MAP) { EMCC_VERSION = $$qtSystemEmccVersion() - greaterThan(EMCC_VERSION, 2.0.16) { - # emsdk 2.0.17 depreciates use of -g4 - QMAKE_LFLAGS += -gsource-map - } else { - QMAKE_LFLAGS += -g4 - } + QMAKE_LFLAGS += -gsource-map # Pass --source-map-base on the linker line. This informs the # browser where to find the source files when debugging. WASM_SOURCE_MAP_BASE = http://localhost:8000/ |