aboutsummaryrefslogtreecommitdiffstats
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
parentc90fa7f8576cf47e329098d77e4b377faa7e13f5 (diff)
downloadpulseaudio-cd8dfee947bf98f99d42ab6f8b42c77b7b3bbc5e.tar.gz
build-sys: meson: Add a check for fast 64-bit operations
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index ae3d81ae..0025bf59 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 = [