diff options
| author | ruki <[email protected]> | 2018-08-10 22:54:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-10 11:29:26 +0800 |
| commit | a114fc03b467a5de249496ddc0b32e138d934f44 (patch) | |
| tree | a8937c7c48be73d4b7ab7d6651062df820c231b0 /xmake/modules | |
| parent | 2a7d3704912245a2433d1071679f4253d96069c0 (diff) | |
remove some macro defines in cl.lua
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 2166d6a85..4b3eaa8ad 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -30,14 +30,13 @@ import("core.language.language") function init(self) -- init cxflags - _g.cxflags = { "-nologo", "-MP4", "-D_MBCS", "-D_CRT_SECURE_NO_WARNINGS"} + _g.cxflags = { "-nologo", "-MP4" } -- init flags map _g.mapflags = { -- optimize ["-O0"] = "-Od" - , ["-O1"] = "" , ["-Os"] = "-O1" , ["-O3"] = "-Ox" , ["-Ofast"] = "-Ox -fp:fast" @@ -147,7 +146,7 @@ function nf_optimize(self, level) local maps = { none = "-Od" - , faster = "-Ox" + , faster = "-O2" , fastest = "-Ox -fp:fast" , smallest = "-O1" , aggressive = "-Ox -fp:fast" |
