From 57891fca57a7be845cd02a947e73567b9d437cc4 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 21 Oct 2021 23:56:42 +0800 Subject: add debug symbol for nim --- xmake/modules/core/tools/nim.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)} -- cgit v1.3.1