From cd8dfee947bf98f99d42ab6f8b42c77b7b3bbc5e Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 15 Aug 2019 15:30:00 +0530 Subject: build-sys: meson: Add a check for fast 64-bit operations --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index ae3d81ae2..0025bf596 100644 --- a/meson.build +++ b/meson.build @@ -167,6 +167,10 @@ elif host_machine.system() == 'windows' # cdata.set('__EXTENSIONS__', 1) endif +if host_machine.cpu_family() == 'x86_64' or cc.sizeof('void *') >= 8 + cdata.set('HAVE_FAST_64BIT_OPERATIONS', 1) +endif + # Headers check_headers = [ -- cgit v1.2.3