From 74c18489f716bda97ae46d2f497682da8867ece9 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Apr 2019 22:46:50 +0800 Subject: improve xmake.lua for core --- core/src/luajit/xmake.lua | 2 -- core/xmake.lua | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua index 0dd1345f8..1f23d8645 100644 --- a/core/src/luajit/xmake.lua +++ b/core/src/luajit/xmake.lua @@ -18,8 +18,6 @@ target("luajit") -- disable c99(/TP) for windows if is_plat("windows") then set_languages("c89") - else - set_languages("gnu99") end -- add header files diff --git a/core/xmake.lua b/core/xmake.lua index bcc6500a3..3cc3a39d2 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -13,6 +13,9 @@ set_warnings("all", "error") -- set language: c99, c++11 set_languages("c99", "cxx11") +-- add release and debug modes +add_rules("mode.release", "mode.debug") + -- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=nullability-completeness") -- cgit v1.3.1