aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-14 09:48:30 +0100
committerMartin Ridgers <[email protected]>2022-01-14 09:50:35 +0100
commit37b984f76e4488820161d06eeaf41f2ba185c7bc (patch)
tree444015423fef752a21a687405b4ad8ab670ec425 /xmake.lua
parentBlake3 for Mac Arm64 (diff)
downloadzen-37b984f76e4488820161d06eeaf41f2ba185c7bc.tar.xz
zen-37b984f76e4488820161d06eeaf41f2ba185c7bc.zip
Disabled Sentry on Arm as vcpkg does not support it
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua21
1 files changed, 14 insertions, 7 deletions
diff --git a/xmake.lua b/xmake.lua
index b77c9fd83..6c5ee63b3 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -16,7 +16,6 @@ add_requires(
"vcpkg::mimalloc",
"vcpkg::openssl",
"vcpkg::robin-map",
- "vcpkg::sentry-native",
"vcpkg::sol2",
"vcpkg::spdlog",
"vcpkg::xxhash",
@@ -24,6 +23,12 @@ add_requires(
"vcpkg::zstd"
)
+if not is_arch("arm64") then
+ add_requires(
+ "vcpkg::sentry-native"
+ )
+end
+
add_rules("mode.debug", "mode.release")
if is_mode("release") then
@@ -77,12 +82,14 @@ function add_define_by_config(define, config_name)
add_defines(define.."="..value)
end
-option("zensentry")
- set_default(true)
- set_showmenu(true)
- set_description("Enables Sentry support in Zen")
-option_end()
-add_define_by_config("ZEN_USE_SENTRY", "zensentry")
+if not is_arch("arm64") then
+ option("zensentry")
+ set_default(true)
+ set_showmenu(true)
+ set_description("Enables Sentry support in Zen")
+ option_end()
+ add_define_by_config("ZEN_USE_SENTRY", "zensentry")
+end
option("zenmimalloc")
set_default(true)