diff options
| -rw-r--r-- | core/xmake.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index 3e3a92acd..4ce9c637b 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -17,6 +17,9 @@ set_languages("c99", "cxx11") add_rules("mode.release", "mode.debug") if is_mode("release") then set_optimize("smallest") + if is_plat("windows") then + add_ldflags("/LTCG") + end end -- disable some compiler errors |
