summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/emcc.lua
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2022-08-05 22:05:11 +0200
committerGitHub <[email protected]>2022-08-05 22:05:11 +0200
commit09e241de617adcbb8912cfe06424fd32117db2a8 (patch)
tree7373f76e2bed5a289ecdbcd99d6524b7e4d8f684 /xmake/modules/core/tools/emcc.lua
parent4711b6b0729fab030150f9d3acea44cfc095ad32 (diff)
emcc: use -g instead of -gsource-map (seems like it's enough)
Diffstat (limited to 'xmake/modules/core/tools/emcc.lua')
-rw-r--r--xmake/modules/core/tools/emcc.lua4
1 files 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