From 324d7ebca12909a91eb98c41ee73304ad7ee7ea6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 17 Sep 2025 12:48:38 +0200 Subject: 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`. --- xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake.lua') 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() -- cgit v1.2.3