diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake index 88161e767c3..6e2ff9bccc7 100644 --- a/cmake/QtWasmHelpers.cmake +++ b/cmake/QtWasmHelpers.cmake @@ -81,7 +81,7 @@ function (qt_internal_setup_wasm_target_properties wasmTarget) # Pass --source-map-base on the linker line. This informs the # browser where to find the source files when debugging. # -g4 to make source maps for debugging - target_link_options("${wasmTarget}" INTERFACE "-g4" "--source-map-base" "${WASM_SOURCE_MAP_BASE}") + target_link_options("${wasmTarget}" INTERFACE "-gsource-map" "--source-map-base" "${WASM_SOURCE_MAP_BASE}") endif() diff --git a/mkspecs/features/wasm/wasm.prf b/mkspecs/features/wasm/wasm.prf index 2629e962c86..8c1da8749ae 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/