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/cl.lua | |
| parent | b9e5a411e38224db1f71a39cad57cc54dc13fee6 (diff) | |
improve flags for linker and compiler
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 0fa1ab65d..542469c5b 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -39,7 +39,7 @@ function init(self) , ["-O1"] = "" , ["-Os"] = "-O1" , ["-O3"] = "-Ox" - , ["-Ofast"] = {"-Ox", "-fp:fast"} + , ["-Ofast"] = "-Ox -fp:fast" , ["-fomit-frame-pointer"] = "-Oy" -- symbols @@ -97,9 +97,9 @@ function nf_symbol(self, level, target) local flags = nil if level == "debug" then if target and target.symbolfile then - flags = {"-ZI", "-Fd" .. target:symbolfile()} + flags = "-ZI -Fd" .. target:symbolfile() if self:has_flags({"-ZI", "-FS", "-Fd" .. os.tmpfile() .. ".pdb"}) then - table.insert(flags, 1, "-FS") + flags = "-FS " .. flags end else flags = "-ZI" @@ -135,9 +135,9 @@ function nf_optimize(self, level) { none = "-Od" , faster = "-Ox" - , fastest = {"-Ox", "-fp:fast"} + , fastest = "-Ox -fp:fast" , smallest = "-O1" - , aggressive = {"-Ox", "-fp:fast"} + , aggressive = "-Ox -fp:fast" } -- make it |
