Skip to content

Commit d903dc3

Browse files
committed
build: disable discord dependency on unsupported architecture
1 parent d91ceb1 commit d903dc3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/dependencies/meson.build

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,17 @@ if build_application
336336

337337
c = meson.get_compiler('c')
338338

339+
discord_dep_required = not meson.is_cross_build() and get_option('build_installer')
340+
341+
if host_machine.system() == 'linux' and host_machine.cpu_family() == 'aarch64'
342+
# not supported on aarch64 linux :(
343+
discord_dep_required = false
344+
endif
345+
339346
discord_sdk_dep = dependency(
340347
'discord-game-sdk',
341348
allow_fallback: true,
342-
required: not meson.is_cross_build() and get_option('build_installer'),
349+
required: discord_dep_required,
343350
# only with msvc we need a static library, all others work without adding __declspec() everywhere
344351
static: c.get_id() == 'msvc',
345352
default_options: c.get_id() != 'msvc' ? {} : {'default_library': 'static'},

0 commit comments

Comments
 (0)