diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2019-06-03 21:19:51 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@videolan.org> | 2019-06-10 22:37:22 +0300 |
commit | 197032bd9bebaf193e6160b3343e56974229e77d (patch) | |
tree | 3291723fb3f8bd30962ff739200b5782353782a8 /meson.build | |
parent | 39dba4cd6d2a43df68916b1fd05b2f2409b92775 (diff) |
Initial PowerPC support
Limited to PowerPC64 LE for now.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 8050860..c58e602 100644 --- a/meson.build +++ b/meson.build @@ -64,7 +64,8 @@ endforeach is_asm_enabled = (get_option('build_asm') == true and (host_machine.cpu_family().startswith('x86') or host_machine.cpu_family() == 'aarch64' or - host_machine.cpu_family().startswith('arm'))) + host_machine.cpu_family().startswith('arm') or + host_machine.cpu() == 'ppc64le')) cdata.set10('HAVE_ASM', is_asm_enabled) if is_asm_enabled and get_option('b_sanitize') == 'memory' @@ -160,7 +161,8 @@ elif cc.has_function('memalign', prefix : '#include <malloc.h>', args : test_arg endif if (host_machine.cpu_family() == 'aarch64' or - host_machine.cpu_family().startswith('arm')) + host_machine.cpu_family().startswith('arm') or + host_machine.cpu() == 'ppc64le') if cc.has_function('getauxval', prefix : '#include <sys/auxv.h>', args : test_args) cdata.set('HAVE_GETAUXVAL', 1) endif @@ -303,6 +305,8 @@ if host_machine.cpu_family().startswith('x86') cdata_asm.set10('PIC', true) endif +cdata.set10('ARCH_PPC64LE', host_machine.cpu() == 'ppc64le') + if cc.symbols_have_underscore_prefix() cdata.set10('PREFIX', true) cdata_asm.set10('PREFIX', true) |