Use more general sizeof to get arch "bitness"

pull/109/head
jackun 4 years ago
parent 2ab386d70a
commit 82243bf115
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -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

Loading…
Cancel
Save