From 65de934dcfcbfbaf80b38155ef5b217fa72780cb Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 16 Nov 2018 17:32:01 +0100 Subject: [PATCH] meson: correct the BIGENDIAN and ENVIRON check we already have the compiler object, there is no need to fetch it again, further more, we are probebly interested in BIGENDIAN on the target_machine, not the host_machine. --- meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 4b9d766f2f..7c9890d36d 100644 --- a/meson.build +++ b/meson.build @@ -98,7 +98,6 @@ config_h.set10('EFL_HAVE_THREADS', true) config_h.set10('SLOPPY_SPEC', true) ## have to get compiler again for this to work -compiler = meson.get_compiler('c') code = '''#define _GNU_SOURCE 1 #include #include @@ -107,7 +106,7 @@ extern char **environ; void func(void) { printf("%p\n", environ); } ''' -if compiler.compiles(code, args : '-lc', name : 'environ check') == true +if cc.compiles(code, args : '-lc', name : 'environ check') == true config_h.set10('HAVE_ENVIRON', true) endif @@ -117,7 +116,7 @@ cpu_neon = false cpu_neon_intrinsics = false native_arch_opt_c_args = [ '-msse3' ] -if host_machine.endian() == 'big' +if target_machine.endian() == 'big' config_h.set10('WORDS_BIGENDIAN', true) endif