summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/go.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/go.lua')
-rw-r--r--xmake/modules/core/tools/go.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/go.lua b/xmake/modules/core/tools/go.lua
index 51f5709af..e7d660d75 100644
--- a/xmake/modules/core/tools/go.lua
+++ b/xmake/modules/core/tools/go.lua
@@ -42,8 +42,9 @@ function nf_optimize(self, level)
end
-- make the symbol flag
-function nf_symbol(self, level, target, mapkind)
- if mapkind ~= "object" then
+function nf_symbol(self, level, opt)
+ local targetkind = opt.targetkind
+ if targetkind ~= "object" then
return
end
local maps = {