diff options
| author | ruki <[email protected]> | 2015-12-08 11:21:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-08 11:21:18 +0800 |
| commit | 75a2bc862eae7ed95ddee16e4271b773c95aeb65 (patch) | |
| tree | 2480fec4245d006a52217fe6873852cc9ae1ee07 /xmake/scripts/base/compiler.lua | |
| parent | 023bbfadd3a05f42e858a2a055bdf2f24f21aa78 (diff) | |
add swift compiler
Diffstat (limited to 'xmake/scripts/base/compiler.lua')
| -rw-r--r-- | xmake/scripts/base/compiler.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/scripts/base/compiler.lua b/xmake/scripts/base/compiler.lua index 184ad0125..f7a9a0c33 100644 --- a/xmake/scripts/base/compiler.lua +++ b/xmake/scripts/base/compiler.lua @@ -312,6 +312,7 @@ function compiler._flagnames(name) elseif name == "mm" then flagnames = { "mxflags", "mflags" } elseif name == "mxx" then flagnames = { "mxflags", "mxxflags" } elseif name == "as" then flagnames = { "asflags" } + elseif name == "sc" then flagnames = { "scflags" } else -- error utils.error("unknown compiler: %s", name) @@ -341,6 +342,7 @@ function compiler._kind(srcfile) elseif filetype == ".m" then kind = "mm" elseif filetype == ".mm" then kind = "mxx" elseif filetype == ".s" or filetype == ".asm" then kind = "as" + elseif filetype == ".swift" then kind = "sc" end -- ok |
