aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 17:32:01 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 17:32:01 +0100
commit65de934dcfcbfbaf80b38155ef5b217fa72780cb (patch)
tree85920bff1c6ad226af89de55b762bc00bbb887b4 /meson.build
parentmeson: cleanup the native-cpu optimization build code (diff)
downloadefl-65de934dcfcbfbaf80b38155ef5b217fa72780cb.tar.gz
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files 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 <unistd.h>
#include <stdio.h>
@@ -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