summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-17 22:46:50 +0800
committerruki <[email protected]>2019-04-17 10:41:01 +0800
commit74c18489f716bda97ae46d2f497682da8867ece9 (patch)
tree30f7a291fa10d39d6b0b8abaae7595a4e1dc8b23 /core/xmake.lua
parentcce9a53e76072dc8317f319b77fd408bdf57238e (diff)
improve xmake.lua for core
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 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")