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 | |
| parent | 70aafd951297294b4f6e8e3ec8ee5058461fa59a (diff) | |
add symbols, language, strip and vectorexts
Diffstat (limited to 'xmake/scripts/platform')
| -rw-r--r-- | xmake/scripts/platform/windows/tools/cl.lua | 22 | ||||
| -rw-r--r-- | xmake/scripts/platform/windows/tools/link.lua | 11 |
2 files changed, 31 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 diff --git a/xmake/scripts/platform/windows/tools/link.lua b/xmake/scripts/platform/windows/tools/link.lua index e08d314a7..6b18a5e15 100644 --- a/xmake/scripts/platform/windows/tools/link.lua +++ b/xmake/scripts/platform/windows/tools/link.lua @@ -54,6 +54,17 @@ function link.init(name) -- init shflags link.shflags = {"-dll", "-nologo", flags_arch} + + -- init flags map + link.mapflags = + { + -- strip + ["-s"] = "" + , ["-S"] = "" + , ["--strip-all"] = "" + , ["--strip-debug"] = "" + } + end -- make the linker command |
