From f34b7e35cc1c636ae9f3656b3deba0597435a726 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Jul 2020 22:50:41 +0800 Subject: build lua-cjson --- core/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/xmake.lua') diff --git a/core/xmake.lua b/core/xmake.lua index 2f1f43957..25009801e 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -76,7 +76,7 @@ if is_plat("windows") then end -- add projects -includes("src/lcurses", "src/sv","src/luajit", "src/tbox", "src/xmake", "src/demo") +includes("src/lua-cjson", "src/lcurses", "src/sv","src/luajit", "src/tbox", "src/xmake", "src/demo") if is_plat("windows") then includes("src/pdcurses") end -- cgit v1.3.1 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(+) (limited to 'core/xmake.lua') 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 From 5131b2b062b478c4ca6dd3310ef139bfe05afc7c Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 17 Jul 2020 00:52:33 +0800 Subject: improve release --- core/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/xmake.lua') 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 -- cgit v1.3.1