summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-21 23:38:30 +0800
committerruki <[email protected]>2017-02-21 23:38:30 +0800
commit06e5d287750d029f1458f2fa2f88733238cf93eb (patch)
tree9c9812881a6ed48bc49aad605dea40d9f43038f9
parentc3d883feee28fd29cfdde759f7a5252049bc6d1e (diff)
add kind to swiftc
-rw-r--r--xmake/tools/swiftc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/tools/swiftc.lua b/xmake/tools/swiftc.lua
index 04e32f922..74f7e8974 100644
--- a/xmake/tools/swiftc.lua
+++ b/xmake/tools/swiftc.lua
@@ -27,11 +27,14 @@ import("core.tool.tool")
import("core.project.config")
-- init it
-function init(shellname)
+function init(shellname, kind)
-- save the shell name
_g.shellname = shellname or "swiftc"
+ -- init kind
+ _g.kind = kind
+
-- init flags map
_g.mapflags =
{