aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua18
1 files changed, 15 insertions, 3 deletions
diff --git a/xmake.lua b/xmake.lua
index ced2b55ce..4049a7d7c 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -39,10 +39,24 @@ else
end
if is_os("windows") then
- add_defines("_CRT_SECURE_NO_WARNINGS", "_UNICODE", "UNICODE", "_WIN32_WINNT=0x0A00")
+ add_defines(
+ "_CRT_SECURE_NO_WARNINGS",
+ "_UNICODE",
+ "UNICODE",
+ "_CONSOLE",
+ "_WIN32_WINNT=0x0A00"
+ )
-- add_ldflags("/MAP")
end
+if is_os("linux") then
+ add_cxxflags("-Wno-unused-variable")
+ add_cxxflags("-Wno-unused-parameter")
+ add_cxxflags("-Wno-strict-aliasing")
+ add_cxxflags("-Wno-implicit-fallthrough")
+ add_cxxflags("-Wno-missing-field-initializers")
+end
+
add_defines("USE_SENTRY=1")
add_defines("ZEN_USE_MIMALLOC=1")
@@ -59,8 +73,6 @@ option("httpsys")
add_defines("ZEN_WITH_HTTPSYS")
option_end()
-add_defines("UNICODE", "_CONSOLE")
-
set_warnings("allextra", "error")
set_languages("cxx20")