diff options
| author | ruki <[email protected]> | 2015-06-07 16:18:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-07 16:18:45 +0800 |
| commit | f254d7f88fbbb159593cdfbadffe98498b14870c (patch) | |
| tree | 0b589224a02ca43f9851d110b206aee6b94f345e /xmake/scripts/platform/windows/tools/cl.lua | |
| parent | 70aafd951297294b4f6e8e3ec8ee5058461fa59a (diff) | |
add symbols, language, strip and vectorexts
Diffstat (limited to 'xmake/scripts/platform/windows/tools/cl.lua')
| -rw-r--r-- | xmake/scripts/platform/windows/tools/cl.lua | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/xmake/scripts/platform/windows/tools/cl.lua b/xmake/scripts/platform/windows/tools/cl.lua index fe962427a..2a0833759 100644 --- a/xmake/scripts/platform/windows/tools/cl.lua +++ b/xmake/scripts/platform/windows/tools/cl.lua @@ -46,9 +46,27 @@ function cl.init(name) , ["-Ofast"] = "-Ox" , ["-fomit-frame-pointer"] = "-Oy" - -- warning + -- symbols + , ["-g"] = "-Z7" + , ["-fvisibility=.*"] = "" + + -- warnings , ["-Werror"] = "-WX" - , ["%-Wno%-error=(.*)"] = "" + , ["%-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=.*"] = "" + + -- language + , ["-ansi"] = "" + , ["-std=.*"] = "" } end |
