diff options
| author | Stefan Boberg <[email protected]> | 2025-11-13 12:20:43 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-11-13 12:20:43 +0100 |
| commit | b6efb4f1988c57e16b3bd258a5a713be3f743e49 (patch) | |
| tree | 8ffe1c8b81afc68d54b6ac72a301b1c68ce2505b /xmake.lua | |
| parent | 5.7.9 (diff) | |
| download | zen-5.7.10-pre0.tar.xz zen-5.7.10-pre0.zip | |
sentry/asan configuration tweaks (#649)v5.7.10-pre0
* Automated more of the decisions around which options to set when using ASAN
* Also disabled Sentry by default as it's a bit annoying to have it upload crashes during development. Sentry is still automatically enabled and integrated as part of the `xmake bundle` step however so released builds will still have it.
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -2,10 +2,14 @@ set_configvar("ZEN_SCHEMA_VERSION", 5) -- force state wipe after 0.2.31 causing bad data (dan.engelbrecht) +set_allowedplats("windows", "linux", "macosx") +set_allowedarchs("windows|x64", "linux|x86_64", "macosx|x86_64", "macosx|arm64") + -------------------------------------------------------------------------- -- We support debug and release modes. On Windows we use static CRT to -- minimize dependencies. +set_allowedmodes("debug", "release") add_rules("mode.debug", "mode.release") if is_plat("windows") then @@ -62,13 +66,16 @@ add_requires("http_parser", {system = false}) add_requires("json11", {system = false}) add_requires("lua", {system = false}) add_requires("lz4", {system = false}) -add_requires("mimalloc", {system = false}) add_requires("xxhash", {system = false}) add_requires("zlib", {system = false}) add_defines("EASTL_STD_ITERATOR_CATEGORY_ENABLED", "EASTL_DEPRECATIONS_FOR_2024_APRIL=EA_DISABLED") add_requires("eastl", {system = false}) +if has_config("zenmimalloc") and not use_asan then + add_requires("mimalloc", {system = false}) +end + -------------------------------------------------------------------------- -- Crypto configuration. For reasons unknown each platform needs a -- different package @@ -200,14 +207,14 @@ function add_define_by_config(define, config_name) end option("zensentry") - set_default(true) + set_default(false) set_showmenu(true) set_description("Enables Sentry support") option_end() add_define_by_config("ZEN_USE_SENTRY", "zensentry") option("zenmimalloc") - set_default(true) + set_default(not use_asan) set_showmenu(true) set_description("Use MiMalloc for faster memory management") option_end() |