summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-10 22:54:54 +0800
committerruki <[email protected]>2018-08-10 11:29:26 +0800
commita114fc03b467a5de249496ddc0b32e138d934f44 (patch)
treea8937c7c48be73d4b7ab7d6651062df820c231b0 /xmake/modules
parent2a7d3704912245a2433d1071679f4253d96069c0 (diff)
remove some macro defines in cl.lua
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/cl.lua5
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"