diff options
| author | ruki <[email protected]> | 2017-02-14 10:53:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-14 10:53:13 +0800 |
| commit | 7f135386a31972e4f4e486ae5854115b2e1af5a2 (patch) | |
| tree | 6a8b9329f3209c7cc72cb7aaac0a581480eb1f93 /xmake/tools/swiftc.lua | |
| parent | 5e23aa6f9344b21dee98ad3fad9182808d690485 (diff) | |
select feature for compiler
Diffstat (limited to 'xmake/tools/swiftc.lua')
| -rw-r--r-- | xmake/tools/swiftc.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/tools/swiftc.lua b/xmake/tools/swiftc.lua index f5dec36aa..54441f34d 100644 --- a/xmake/tools/swiftc.lua +++ b/xmake/tools/swiftc.lua @@ -59,6 +59,11 @@ function init(shellname) , ["-fsanitize=address"] = "" } + -- init features + _g.features = + { + ["compile:multifiles"] = false + } end -- get the property @@ -205,7 +210,7 @@ end function compcmd(sourcefiles, objectfile, flags) -- only support single source file now - assert(type(sourcefiles) == "string", "not support") + assert(type(sourcefiles) ~= "table", "'compile:multifiles' not support!") -- for only single source file return _compcmd1(sourcefiles, objectfile, flags) @@ -215,7 +220,7 @@ end function compile(sourcefiles, objectfile, incdepfiles, flags) -- only support single source file now - assert(type(sourcefiles) == "string", "not support") + assert(type(sourcefiles) ~= "table", "'compile:multifiles' not support!") -- for only single source file _compile1(sourcefiles, objectfile, incdepfiles, flags) |
