aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-29 16:34:08 +0200
committerMartin Ridgers <[email protected]>2021-09-29 16:57:32 +0200
commit606f75848fbf54a8676c5a189dea916595538808 (patch)
treef42f2ae3a6e3f761d3bbaf3bcbd5fc86cb280059
parentSet the link dirs and libs that zencore needs on Linux (diff)
downloadzen-606f75848fbf54a8676c5a189dea916595538808.tar.xz
zen-606f75848fbf54a8676c5a189dea916595538808.zip
Global compile flags when building on Linux
-rw-r--r--xmake.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 9d44ec8d0..e75c40e58 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -46,6 +46,14 @@ if is_os("windows") then
-- add_ldflags("/MAP")
end
+if is_os("linux") then
+ add_cxxflags("-fshort-wchar")
+ add_cxxflags("-Wno-unused-variable")
+ add_cxxflags("-Wno-unused-parameter")
+ add_cxxflags("-Wno-strict-aliasing")
+ add_cxxflags("-Wno-implicit-fallthrough")
+end
+
add_defines("USE_SENTRY=1")
add_defines("ZEN_USE_MIMALLOC=1")