aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-08-16 13:46:54 +0200
committerGitHub Enterprise <[email protected]>2024-08-16 13:46:54 +0200
commit8a4f0f0303c39bb6215839509479e2629f61d2f7 (patch)
treebbcd2a17f18a0f320e34057c4cdd4b625f796f8b /xmake.lua
parent5.5.4-pre3 (diff)
downloadzen-8a4f0f0303c39bb6215839509479e2629f61d2f7.tar.xz
zen-8a4f0f0303c39bb6215839509479e2629f61d2f7.zip
enable mimalloc on arm64 (#120)
* enable mimalloc on arm64
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua18
1 files changed, 8 insertions, 10 deletions
diff --git a/xmake.lua b/xmake.lua
index 62c02c629..d7221711e 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -39,16 +39,14 @@ if is_plat("windows") then
add_requires("7z")
end
- if has_config("zensentry") then
- if is_plat("linux") then
- add_requires("vcpkg::sentry-native 0.5.4")
- else
- add_requires("vcpkg::sentry-native")
- end
- end
+add_requires("vcpkg::mimalloc")
-if not is_arch("arm64") then
- add_requires("vcpkg::mimalloc")
+if has_config("zensentry") then
+ if is_plat("linux") then
+ add_requires("vcpkg::sentry-native 0.5.4")
+ else
+ add_requires("vcpkg::sentry-native")
+ end
end
add_rules("mode.debug", "mode.release")
@@ -124,6 +122,7 @@ if not is_arch("arm64") then
set_description("Enables Sentry support in Zen")
option_end()
add_define_by_config("ZEN_USE_SENTRY", "zensentry")
+end
option("zenmimalloc")
set_default(true)
@@ -131,7 +130,6 @@ if not is_arch("arm64") then
set_description("Use MiMalloc as Zen's allocator")
option_end()
add_define_by_config("ZEN_USE_MIMALLOC", "zenmimalloc")
-end
if is_os("windows") then
option("httpsys")