summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--header_checks/meson.build2
-rw-r--r--meson.build2
2 files changed, 3 insertions, 1 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build
index aebc163b2e..b23e774ec1 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -12,6 +12,8 @@ if get_option('native-arch-optimization')
12 if cc.has_header(native_header) == false 12 if cc.has_header(native_header) == false
13 error('Error, header '+native_header+' is required') 13 error('Error, header '+native_header+' is required')
14 endif 14 endif
15
16 config_h.set10('HAVE_'+native_header.underscorify().to_upper(), true)
15endif 17endif
16 18
17header_checks = [ 19header_checks = [
diff --git a/meson.build b/meson.build
index 96f11d3ad2..d3dfd54424 100644
--- a/meson.build
+++ b/meson.build
@@ -157,7 +157,7 @@ if get_option('native-arch-optimization')
157 message('ARM64 build - NEON + intrinsics enabled') 157 message('ARM64 build - NEON + intrinsics enabled')
158 elif host_machine.cpu_family() == 'ppc' or host_machine.cpu_family() == 'ppc64' 158 elif host_machine.cpu_family() == 'ppc' or host_machine.cpu_family() == 'ppc64'
159 config_h.set10('BUILD_ALTIVEC', true) 159 config_h.set10('BUILD_ALTIVEC', true)
160 add_global_arguments('-maltivec-vectorize', language: 'c') 160 add_global_arguments('-ftree-vectorize', language: 'c')
161 add_global_arguments('-maltivec', language: 'c') 161 add_global_arguments('-maltivec', language: 'c')
162 message('PPC/POWER build - ALTIVEC enabled') 162 message('PPC/POWER build - ALTIVEC enabled')
163 endif 163 endif