diff options
| author | ruki <[email protected]> | 2022-01-07 22:35:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-01-07 22:35:55 +0800 |
| commit | b5298ce3d6ccade7f651756b4f2627bd78478c36 (patch) | |
| tree | 6256ca946d6b0ed689e664fd7e5d47ea13f09218 /xmake/modules | |
| parent | 2414e25c660cda85d3b0831b93460a475e482e32 (diff) | |
remove format from builder/tools
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/go.lua | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/xmake/modules/core/tools/go.lua b/xmake/modules/core/tools/go.lua index 34d096873..2b2b76623 100644 --- a/xmake/modules/core/tools/go.lua +++ b/xmake/modules/core/tools/go.lua @@ -25,18 +25,12 @@ import("core.project.project") -- init it function init(self) - - -- init arflags self:set("gcarflags", "grc") - - -- init the file formats - self:set("formats", { static = "$(name).a" }) end -- make the optimize flag function nf_optimize(self, level) - local maps = - { + local maps = { none = "-N" } return maps[level] @@ -44,15 +38,10 @@ end -- make the symbol flag function nf_symbol(self, level, target, mapkind) - - -- only for compiler if mapkind ~= "object" then return end - - -- the maps - local maps = - { + local maps = { debug = "-E" } return maps[level] @@ -60,8 +49,7 @@ end -- make the strip flag function nf_strip(self, level) - local maps = - { + local maps = { debug = "-s" , all = "-s" } |
