From 3cd22b26a4b0abe9bed7360875718743a7bb5140 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 17 Jul 2020 00:51:12 +0800 Subject: improve release --- core/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) 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") -- cgit v1.3.1