summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorArun Raghavan <arun@arunraghavan.net>2019-08-15 15:30:00 +0530
committerArun Raghavan <arun@arunraghavan.net>2019-08-15 18:57:13 +0530
commitcd8dfee947bf98f99d42ab6f8b42c77b7b3bbc5e (patch)
treea2dfd7d49c1a590316ad58c603f31702b65ff28c /meson.build
parentc90fa7f8576cf47e329098d77e4b377faa7e13f5 (diff)
build-sys: meson: Add a check for fast 64-bit operations
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
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 = [