summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nim.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-21 23:56:42 +0800
committerruki <[email protected]>2021-10-21 23:56:42 +0800
commit57891fca57a7be845cd02a947e73567b9d437cc4 (patch)
treec85bb5fba7db241ee68f5fb1a85a3e5a3e8ce90c /xmake/modules/core/tools/nim.lua
parenta48901eab4c530e440b9fcbd339ad0c83ec9ed1f (diff)
add debug symbol for nim
Diffstat (limited to 'xmake/modules/core/tools/nim.lua')
-rw-r--r--xmake/modules/core/tools/nim.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nim.lua b/xmake/modules/core/tools/nim.lua
index bab8b458a..b76fcb4ea 100644
--- a/xmake/modules/core/tools/nim.lua
+++ b/xmake/modules/core/tools/nim.lua
@@ -78,11 +78,20 @@ end
function nf_symbol(self, level)
local maps =
{
- debug = "--stackTrace:on"
+ debug = "--debugger:native"
}
return maps[level]
end
+-- make the strip flag
+function nf_strip(self, level)
+ if is_plat("linux", "macosx", "bsd") then
+ if level == "debug" or level == "all" then
+ return "--passL:-s"
+ end
+ end
+end
+
-- make the includedir flag
function nf_includedir(self, dir)
return {"--passC:-I" .. path.translate(dir)}