From 82243bf1151d27a264f8902ef232b416c167063d Mon Sep 17 00:00:00 2001 From: jackun Date: Mon, 23 Mar 2020 22:33:32 +0200 Subject: [PATCH] Use more general sizeof to get arch "bitness" --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 9a9a5466..d3820e25 100644 --- a/meson.build +++ b/meson.build @@ -211,10 +211,10 @@ util_files = files( 'src/mesa/util/os_time.c', ) -if target_machine.cpu_family() == 'x86_64' +if cc.sizeof('void*') == 8 pre_args += '-DMANGOHUD_ARCH="64bit"' endif -if target_machine.cpu_family() == 'x86' +if cc.sizeof('void*') == 4 pre_args += '-DMANGOHUD_ARCH="32bit"' endif