diff options
| author | ruki <[email protected]> | 2017-07-13 10:52:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-13 10:52:42 +0800 |
| commit | b7ae88c507b9afe89cd677ee81894e44a961a4b4 (patch) | |
| tree | a8aca817b422ca83f76d8310678351eaa3f3cf75 /xmake/modules/core/tools/swiftc.lua | |
| parent | b9e5a411e38224db1f71a39cad57cc54dc13fee6 (diff) | |
improve flags for linker and compiler
Diffstat (limited to 'xmake/modules/core/tools/swiftc.lua')
| -rw-r--r-- | xmake/modules/core/tools/swiftc.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/modules/core/tools/swiftc.lua b/xmake/modules/core/tools/swiftc.lua index cfe97a0c3..4ce63567c 100644 --- a/xmake/modules/core/tools/swiftc.lua +++ b/xmake/modules/core/tools/swiftc.lua @@ -74,8 +74,8 @@ function nf_strip(self, level) -- the maps local maps = { - debug = {"-Xlinker", "-S"} - , all = {"-Xlinker", "-s"} + debug = "-Xlinker -S" + , all = "-Xlinker -s" } -- make it @@ -147,27 +147,27 @@ function nf_vectorext(self, extension) } -- make it - return maps[extension] or "" + return maps[extension] 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} + 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 |
