summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/swiftc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-11 14:51:52 +0800
committerruki <[email protected]>2017-07-11 14:51:52 +0800
commit410a36dad68dc1f0b2ac9c12d861af7ab8d0b1d6 (patch)
treee33e94caea84d3a170f6dd86c36ac2e4adbd6687 /xmake/modules/core/tools/swiftc.lua
parent03420ca44581f299a48935ca60af4824575cd9c1 (diff)
rename has_flag to has_flags
Diffstat (limited to 'xmake/modules/core/tools/swiftc.lua')
-rw-r--r--xmake/modules/core/tools/swiftc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/swiftc.lua b/xmake/modules/core/tools/swiftc.lua
index e1c18934e..c1b9aad93 100644
--- a/xmake/modules/core/tools/swiftc.lua
+++ b/xmake/modules/core/tools/swiftc.lua
@@ -152,22 +152,22 @@ end
-- make the includedir flag
function nf_includedir(self, dir)
- return "-Xcc -I" .. dir
+ return {"-Xcc", "-I" .. dir}
end
-- make the define flag
function nf_define(self, macro)
- return "-Xcc -D" .. macro:gsub("\"", "\\\"")
+ return {"-Xcc", "-D" .. macro}
end
-- make the undefine flag
function nf_undefine(self, macro)
- return "-Xcc -U" .. macro
+ return {"-Xcc", "-U" .. macro}
end
-- make the framework flag
function nf_framework(self, framework)
- return "-framework" .. framework
+ return {"-framework", framework}
end
-- make the link flag