summaryrefslogtreecommitdiff
path: root/xmake/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-15 16:00:40 +0800
committerruki <[email protected]>2016-09-15 16:00:40 +0800
commit7449fde35f1d4e5aef2d2f4d2556a201d2ed1099 (patch)
tree29ce0fee3e17a839e9cd621daf1d47b26f528a5f /xmake/tools
parente578c2db7c8a93fd1ac6999b9ba6f1b5c3a74406 (diff)
fix ml compile error
Diffstat (limited to 'xmake/tools')
-rwxr-xr-xxmake/tools/ml.lua30
1 files changed, 3 insertions, 27 deletions
diff --git a/xmake/tools/ml.lua b/xmake/tools/ml.lua
index 6ae420aed..a45c2d25b 100755
--- a/xmake/tools/ml.lua
+++ b/xmake/tools/ml.lua
@@ -27,7 +27,7 @@ function init(shellname)
_g.shellname = shellname or "ml.exe"
-- init asflags
- _g.asflags = { "-nologo", "-Gd", "-MP4", "-D_MBCS", "-D_CRT_SECURE_NO_WARNINGS"}
+ _g.asflags = { "-nologo", "-Gd"}
-- init flags map
_g.mapflags =
@@ -127,36 +127,12 @@ end
-- make the optimize flag
function optimize(level)
-
- -- the maps
- local maps =
- {
- none = "-Od"
- , fast = "-O1"
- , faster = "-O2"
- , fastest = "-Ot"
- , smallest = "-Os"
- , aggressive = "-Ox"
- }
-
- -- make it
- return maps[level] or ""
+ return ""
end
-- make the vector extension flag
function vectorext(extension)
-
- -- the maps
- local maps =
- {
- sse = "-arch:SSE"
- , sse2 = "-arch:SSE2"
- , avx = "-arch:AVX"
- , avx2 = "-arch:AVX2"
- }
-
- -- make it
- return maps[extension] or ""
+ return ""
end
-- make the language flag