diff options
| author | Stefan Boberg <[email protected]> | 2024-08-16 13:46:54 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-08-16 13:46:54 +0200 |
| commit | 8a4f0f0303c39bb6215839509479e2629f61d2f7 (patch) | |
| tree | bbcd2a17f18a0f320e34057c4cdd4b625f796f8b /xmake.lua | |
| parent | 5.5.4-pre3 (diff) | |
| download | zen-8a4f0f0303c39bb6215839509479e2629f61d2f7.tar.xz zen-8a4f0f0303c39bb6215839509479e2629f61d2f7.zip | |
enable mimalloc on arm64 (#120)
* enable mimalloc on arm64
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -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") |