diff options
| author | ruki <[email protected]> | 2022-09-30 21:02:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-30 21:02:09 +0800 |
| commit | b9225ffbb78ca4f4fa51d39524857b8f380be738 (patch) | |
| tree | dce97ef7d8018e2c5b683ba6c9cd82cfa7af69e9 /xmake/modules | |
| parent | 042906d1560ff0a20a2469715a0b72160b5f4ae2 (diff) | |
improve clang-cl
Diffstat (limited to 'xmake/modules')
| -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 |
