summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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