summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-26 00:54:16 +0800
committerruki <[email protected]>2024-04-26 00:54:16 +0800
commit5388efb7b2ce441eb32c2f3cbfc6027c3f452eda (patch)
tree3f87447ff83f924050a1b18b43b4b8bf05b176ae /xmake/modules/core
parent13ce5cad631c217a89fbc40d0932a4f32085d06c (diff)
improve optimize for cl #5012
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/cl.lua4
-rw-r--r--xmake/modules/core/tools/clang_cl.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 8702dade6..bad9f5f6d 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -177,9 +177,9 @@ function nf_optimize(self, level)
{
none = "-Od"
, faster = "-Ox"
- , fastest = "-O2 -fp:fast"
+ , fastest = "-O2"
, smallest = "-O1 -GL" -- /GL and (/OPT:REF is on by default in linker), we need to enable /ltcg
- , aggressive = "-O2 -fp:fast"
+ , aggressive = "-O2"
}
return maps[level]
end
diff --git a/xmake/modules/core/tools/clang_cl.lua b/xmake/modules/core/tools/clang_cl.lua
index 27afb1d26..694a05fcd 100644
--- a/xmake/modules/core/tools/clang_cl.lua
+++ b/xmake/modules/core/tools/clang_cl.lua
@@ -105,7 +105,7 @@ function nf_optimize(self, level)
, faster = "-Ox"
, fastest = "-O2"
, smallest = "-O1"
- , aggressive = "-O2 -fp:fast"
+ , aggressive = "-O2"
}
return maps[level]
end