summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-17 00:51:12 +0800
committerruki <[email protected]>2020-07-17 00:51:12 +0800
commit3cd22b26a4b0abe9bed7360875718743a7bb5140 (patch)
tree58c1e7681b06eade6c6e4e52489e13f8201cce47 /core/xmake.lua
parent4b39a01e80756cce66f966c9c5f24fcc3e616704 (diff)
improve release
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index 25009801e..3e3a92acd 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -15,6 +15,9 @@ set_languages("c99", "cxx11")
-- add release and debug modes
add_rules("mode.release", "mode.debug")
+if is_mode("release") then
+ set_optimize("smallest")
+end
-- disable some compiler errors
add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=nullability-completeness", "-Wno-error=parentheses-equality")