summaryrefslogtreecommitdiff
path: root/xmake/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-15 18:24:07 +0800
committerruki <[email protected]>2016-09-15 18:24:07 +0800
commit5add52e8c36aea18ccc70320949e077c69d9e6fa (patch)
tree1fa8a0da3ea52321422ae3a2dd7103820680617e /xmake/tools/ml.lua
parent7449fde35f1d4e5aef2d2f4d2556a201d2ed1099 (diff)
modify CHANGELOG.md
Diffstat (limited to 'xmake/tools/ml.lua')
-rwxr-xr-xxmake/tools/ml.lua24
1 files changed, 6 insertions, 18 deletions
diff --git a/xmake/tools/ml.lua b/xmake/tools/ml.lua
index a45c2d25b..5e5c0251a 100755
--- a/xmake/tools/ml.lua
+++ b/xmake/tools/ml.lua
@@ -27,19 +27,17 @@ function init(shellname)
_g.shellname = shellname or "ml.exe"
-- init asflags
- _g.asflags = { "-nologo", "-Gd"}
+ if _g.shellname:find("64") then
+ _g.asflags = { "-nologo"}
+ else
+ _g.asflags = { "-nologo", "-Gd"}
+ end
-- init flags map
_g.mapflags =
{
- -- optimize
- ["-O0"] = "-Od"
- , ["-O3"] = "-Ot"
- , ["-Ofast"] = "-Ox"
- , ["-fomit-frame-pointer"] = "-Oy"
-
-- symbols
- , ["-g"] = "-Z7"
+ ["-g"] = "-Z7"
, ["-fvisibility=.*"] = ""
-- warnings
@@ -50,16 +48,6 @@ function init(shellname)
, ["-Werror"] = "-WX"
, ["%-Wno%-error=.*"] = ""
- -- vectorexts
- , ["-mmmx"] = "-arch:MMX"
- , ["-msse"] = "-arch:SSE"
- , ["-msse2"] = "-arch:SSE2"
- , ["-msse3"] = "-arch:SSE3"
- , ["-mssse3"] = "-arch:SSSE3"
- , ["-mavx"] = "-arch:AVX"
- , ["-mavx2"] = "-arch:AVX2"
- , ["-mfpu=.*"] = ""
-
-- others
, ["-ftrapv"] = ""
, ["-fsanitize=address"] = ""