aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-07-25 22:50:35 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-07-27 00:55:27 +0300
commit463d08d5459a05807e63c833b56614bc8c59643a (patch)
tree28183ff6af3991f549f8eb9151a8a2c56e477ebe /meson.py
parenteb3cdb6f8d380da19231affd176deb8088481a5a (diff)
downloadmeson-463d08d5459a05807e63c833b56614bc8c59643a.zip
meson-463d08d5459a05807e63c833b56614bc8c59643a.tar.gz
meson-463d08d5459a05807e63c833b56614bc8c59643a.tar.bz2
Now host_machine, build_machine and target_machine are properly separated and return correct values.
Diffstat (limited to 'meson.py')
-rwxr-xr-xmeson.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.py b/meson.py
index e988f03..6628a48 100755
--- a/meson.py
+++ b/meson.py
@@ -126,6 +126,9 @@ itself as required.'''
mlog.log('Build type:', mlog.bold('native build'))
b = build.Build(env)
intr = interpreter.Interpreter(b)
+ if env.is_cross_build():
+ mlog.log('Host machine cpu:', mlog.bold(intr.builtin['host_machine'].info['cpu']))
+ mlog.log('Target machine cpu:', mlog.bold(intr.builtin['target_machine'].info['cpu']))
intr.run()
if self.options.backend == 'ninja':
import ninjabackend