Skip to content

Commit

Permalink
meson: Auto-disable external device backends for 32-bit host machines
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Jul 4, 2024
1 parent 7262e55 commit 0de45af
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ else
host_arch = host_machine.cpu_family()
host_abi = host_arch
endif
host_docks_mobile_devices = host_os in ['windows', 'macos', 'linux', 'freebsd']
if cc.sizeof('void *') == 8
host_cpu_mode = '64'
else
host_cpu_mode = '32'
endif
host_docks_mobile_devices = host_os in ['windows', 'macos', 'linux', 'freebsd'] and host_cpu_mode == '64'
gumjs_archs = {
'x86': 'ia32',
'x86_64': 'x64',
Expand Down Expand Up @@ -157,12 +162,6 @@ if host_os_family == 'darwin'
endif
endif

if cc.sizeof('void *') == 8
host_cpu_mode = '64'
else
host_cpu_mode = '32'
endif

if host_os_family == 'darwin' and host_arch == 'arm64'
host_is_modern = host_abi == 'arm64e'
else
Expand Down

0 comments on commit 0de45af

Please sign in to comment.