diff options
| author | ruki <[email protected]> | 2021-10-21 23:56:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-21 23:56:42 +0800 |
| commit | 57891fca57a7be845cd02a947e73567b9d437cc4 (patch) | |
| tree | c85bb5fba7db241ee68f5fb1a85a3e5a3e8ce90c /xmake/modules/core/tools/nim.lua | |
| parent | a48901eab4c530e440b9fcbd339ad0c83ec9ed1f (diff) | |
add debug symbol for nim
Diffstat (limited to 'xmake/modules/core/tools/nim.lua')
| -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)} |
