summaryrefslogtreecommitdiff
path: root/header_checks
diff options
context:
space:
mode:
Diffstat (limited to 'header_checks')
-rw-r--r--header_checks/meson.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build
index 01e557e95f..cb47b040d4 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -1,3 +1,19 @@
1if get_option('native-arch-optimization')
2 if target_machine.cpu_family() == 'x86' or target_machine.cpu_family() == 'x86_64'
3 native_header = 'immintrin.h'
4 elif target_machine.cpu_family() == 'arm'
5 native_header = 'arm_neon.h'
6 elif target_machine.cpu_family() == 'aarch64'
7 native_header = 'arm_neon.h'
8 elif target_machine.cpu_family() == 'ppc' or target_machine.cpu_family() == 'ppc64'
9 native_header = 'altivec.h'
10 endif
11
12 if cc.has_header(native_header) == false
13 error('Error, header '+native_header+' is required')
14 endif
15endif
16
1header_checks = [ 17header_checks = [
2 'alloca.h', 18 'alloca.h',
3 'asm/hwcap.h', 19 'asm/hwcap.h',