diff options
| author | ruki <[email protected]> | 2020-07-17 00:52:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-17 00:52:33 +0800 |
| commit | 5131b2b062b478c4ca6dd3310ef139bfe05afc7c (patch) | |
| tree | 50b764b4f6484d90c3b0adf3356b7e2e9a76a12b /core/xmake.lua | |
| parent | 3cd22b26a4b0abe9bed7360875718743a7bb5140 (diff) | |
improve release
Diffstat (limited to 'core/xmake.lua')
| -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 |
