From 09e241de617adcbb8912cfe06424fd32117db2a8 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Fri, 5 Aug 2022 22:05:11 +0200 Subject: emcc: use -g instead of -gsource-map (seems like it's enough) --- xmake/modules/core/tools/emcc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/emcc.lua b/xmake/modules/core/tools/emcc.lua index 18fc32848..1c9868906 100644 --- a/xmake/modules/core/tools/emcc.lua +++ b/xmake/modules/core/tools/emcc.lua @@ -49,9 +49,9 @@ end function nf_symbol(self, level) local kind = self:kind() if kind == "ld" or kind == "sh" then - -- emscripten requires -gsource-map when linking to map JS/wasm code back to original source + -- emscripten requires -g when linking to map JS/wasm code back to original source if level == "debug" then - return "-gsource-map" + return "-g" end end -- cgit v1.3.1