summaryrefslogtreecommitdiff
path: root/xmake/scripts/base
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base')
-rw-r--r--xmake/scripts/base/compiler.lua2
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