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/rustc.lua | |
| parent | b9e5a411e38224db1f71a39cad57cc54dc13fee6 (diff) | |
improve flags for linker and compiler
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rustc.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua index f82dcf006..6e102f69d 100644 --- a/xmake/modules/core/tools/rustc.lua +++ b/xmake/modules/core/tools/rustc.lua @@ -64,12 +64,12 @@ function nf_optimize(self, level) -- the maps local maps = { - none = {"-C", "opt-level=0"} - , fast = {"-C", "opt-level=1"} - , faster = {"-C", "opt-level=2"} - , fastest = {"-C", "opt-level=3"} - , smallest = {"-C", "opt-level=s"} - , aggressive = {"-C", "opt-level=z"} + none = "-C opt-level=0" + , fast = "-C opt-level=1" + , faster = "-C opt-level=2" + , fastest = "-C opt-level=3" + , smallest = "-C opt-level=s" + , aggressive = "-C opt-level=z" } -- make it @@ -82,7 +82,7 @@ function nf_symbol(self, level) -- the maps local maps = { - debug = {"-C", "debuginfo=2"} + debug = "-C debuginfo=2" } -- make it @@ -91,7 +91,7 @@ end -- make the linkdir flag function nf_linkdir(self, dir) - return {"-L", dir} + return "-L" .. dir end -- make the build arguments list |
