aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-09-17 12:48:38 +0200
committerGitHub Enterprise <[email protected]>2025-09-17 12:48:38 +0200
commit324d7ebca12909a91eb98c41ee73304ad7ee7ea6 (patch)
tree9d256567ed94da881713c2b252b8fc4a64b1134b /xmake.lua
parentSorting oplog tree view by size would raise an error. (#497) (diff)
downloadzen-324d7ebca12909a91eb98c41ee73304ad7ee7ea6.tar.xz
zen-324d7ebca12909a91eb98c41ee73304ad7ee7ea6.zip
rpmalloc fixes (#499)
* fixed rpmalloc build on Linux and Mac * updated rpmalloc from develop branch on the advice of mjansson * enabled rpmalloc on all platforms note that this does not change any behaviour unless `--malloc=rpmalloc` is passed in on the command line. The default is still `mimalloc`.
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 46c403c11..7a54bd236 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -121,6 +121,7 @@ end
if is_os("linux") then
add_cxxflags("-Wno-vla-cxx-extension")
+ add_defines("_GNU_SOURCE")
end
-- Turn use of undefined cpp macros into errors
@@ -150,7 +151,7 @@ option_end()
add_define_by_config("ZEN_USE_MIMALLOC", "zenmimalloc")
option("zenrpmalloc")
- set_default(is_os("windows"))
+ set_default(true)
set_showmenu(true)
set_description("Use rpmalloc for faster memory management")
option_end()