summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/luajit/xmake.lua2
-rw-r--r--core/xmake.lua3
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")