diff options
| -rw-r--r-- | xmake/modules/core/tools/clang_cl.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/clang_cl.lua b/xmake/modules/core/tools/clang_cl.lua index b4b7211e1..8f290b9c4 100644 --- a/xmake/modules/core/tools/clang_cl.lua +++ b/xmake/modules/core/tools/clang_cl.lua @@ -94,12 +94,11 @@ end function nf_optimize(self, level) local maps = { - none = "-O0" - , fast = "-O1" - , faster = "-O2" - , fastest = "-O3" - , smallest = "-Oz" -- smaller than -Os - , aggressive = "-Ofast" + none = "-Od" + , faster = "-Ox" + , fastest = "-O2 -fp:fast" + , smallest = "-O1" + , aggressive = "-O2 -fp:fast" } return maps[level] end |
