summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-11 22:48:38 +0800
committerruki <[email protected]>2020-06-11 10:51:48 +0800
commit162747cfe0a2f8c6df420cbe6655b0d9dcca5771 (patch)
tree2edb5450bb3062183be9d299fcf827d0c239a199
parent9ea61e4e9f9ced9a937cedb8b4a24c2b0021c5a9 (diff)
improve optimize for cl.exe
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index d6a71f619..8bf8c6232 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -140,7 +140,7 @@ function nf_optimize(self, level)
none = "-Od"
, faster = "-O2"
, fastest = "-Ox -fp:fast"
- , smallest = "-O1"
+ , smallest = "-O1 -GL" -- /GL and (/OPT:REF is on by default in linker)
, aggressive = "-Ox -fp:fast"
}