diff options
| -rw-r--r-- | xmake/modules/core/tools/nim.lua | 11 |
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)} |
