diff options
| author | ruki <[email protected]> | 2017-07-11 14:51:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-11 14:51:52 +0800 |
| commit | 410a36dad68dc1f0b2ac9c12d861af7ab8d0b1d6 (patch) | |
| tree | e33e94caea84d3a170f6dd86c36ac2e4adbd6687 /xmake/modules/core/tools/swiftc.lua | |
| parent | 03420ca44581f299a48935ca60af4824575cd9c1 (diff) | |
rename has_flag to has_flags
Diffstat (limited to 'xmake/modules/core/tools/swiftc.lua')
| -rw-r--r-- | xmake/modules/core/tools/swiftc.lua | 8 |
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 |
