Skip to content

Commit 8cc65c7

Browse files
Fix build for non seccomp arches (#272)
1 parent b835c44 commit 8cc65c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ udev = dependency('libudev')
4949
# Only x86_64 and aarch64 have a seccomp_extra_arches table in
5050
# gnome-desktop-thumbnail-script.c, so refuse the option elsewhere.
5151
bwrap_opt = get_option('bubblewrap')
52+
bwrap_arch_ok = host_machine.cpu_family() in ['x86_64', 'aarch64']
5253
if host_machine.cpu_family() not in ['x86_64', 'aarch64']
5354
if bwrap_opt.enabled()
5455
error('bubblewrap sandbox is not supported on @0@'.format(host_machine.cpu_family()))
@@ -57,7 +58,7 @@ if host_machine.cpu_family() not in ['x86_64', 'aarch64']
5758
endif
5859
seccomp = dependency('libseccomp', required: bwrap_opt)
5960
fontconfig = dependency('fontconfig', required: bwrap_opt)
60-
have_bwrap = seccomp.found() and fontconfig.found()
61+
have_bwrap = bwrap_arch_ok and not bwrap_opt.disabled() and seccomp.found() and fontconfig.found()
6162

6263
cinnamon_deps = [
6364
gdk_pixb,

0 commit comments

Comments
 (0)