summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/tools/link.lua')
-rw-r--r--[-rwxr-xr-x]xmake/tools/link.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua
index 822bc3f0f..737a4eae9 100755..100644
--- a/xmake/tools/link.lua
+++ b/xmake/tools/link.lua
@@ -26,11 +26,14 @@
import("core.project.config")
-- init it
-function init(shellname)
+function init(shellname, kind)
-- save the shell name
_g.shellname = shellname or "link.exe"
+ -- save the tool kind
+ _g.kind = kind
+
-- the architecture
local arch = config.get("arch")