meson - define WORDS_BIGENDIAN if on big endian

This commit is contained in:
Carsten Haitzler 2018-11-11 09:15:14 +00:00
parent 791cd5b157
commit f92bf3d8cd
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ cpu_altivec = false
evas_opt_c_args = [ ]
machine_c_args = [ ]
compiler = meson.get_compiler('c')
if host_machine.endian() == 'big'
config_h.set10('WORDS_BIGENDIAN', true)
endif
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
if compiler.has_header('immintrin.h') == true
if (get_option('cpu-mmx') == true)