diff options
| author | ruki <[email protected]> | 2015-06-05 17:04:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-05 17:04:07 +0800 |
| commit | 6222a6ede3f06a0c67eccf0225d0ffb88cf9d4c8 (patch) | |
| tree | 84bd3b55fa14113db97f956faecfff424688222e /xmake/scripts/platform/windows/tools/cl.lua | |
| parent | 411e3138ec53ab99c73f0124ef93ac98d746cdc9 (diff) | |
add optimize flags
Diffstat (limited to 'xmake/scripts/platform/windows/tools/cl.lua')
| -rw-r--r-- | xmake/scripts/platform/windows/tools/cl.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/xmake/scripts/platform/windows/tools/cl.lua b/xmake/scripts/platform/windows/tools/cl.lua index 24c45bec3..9feda6e98 100644 --- a/xmake/scripts/platform/windows/tools/cl.lua +++ b/xmake/scripts/platform/windows/tools/cl.lua @@ -37,6 +37,15 @@ function cl.init(name) -- init cxxflags cl.cxxflags = { "-nologo" } + -- init flags map + cl.mapflags = + { + ["-O0"] = "-Od" + , ["-O3"] = "-Ot" + , ["-Ofast"] = "-Ox" + , ["-fomit-frame-pointer"] = "-Oy" + } + end -- make the compiler command @@ -60,13 +69,6 @@ function cl.flag_includedir(includedir) return "-I" .. includedir end --- map gcc flag to the current compiler flag -function cl.flag_map(flag) - - -- ok - return flag -end - -- the main function function cl.main(...) |
