aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2016-09-25 21:36:04 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-25 19:06:04 +0300
commitcb2eff8440ce05ba77e5b02d6ad5afcd9868f04e (patch)
treef1b78cfb7797c2a95f979b7a49e411f9cb1be8b9
parent9c6369c7593a33ccf1eaa0bd8628550a9c4d21e5 (diff)
downloadmeson-cb2eff8440ce05ba77e5b02d6ad5afcd9868f04e.zip
meson-cb2eff8440ce05ba77e5b02d6ad5afcd9868f04e.tar.gz
meson-cb2eff8440ce05ba77e5b02d6ad5afcd9868f04e.tar.bz2
ninja: Fix checking of exe_wrapper for CustomTargets (#806)
It was making a trivially incorrect check
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index c726668..4139ace 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -481,7 +481,7 @@ class Backend():
if self.environment.is_cross_build() and \
self.environment.cross_info.need_exe_wrapper() and \
isinstance(exe, build.BuildTarget) and exe.is_cross:
- if 'exe_wrapper' not in self.environment.cross_info.config:
+ if 'exe_wrapper' not in self.environment.cross_info.config['binaries']:
s = 'Can not use target %s as a generator because it is cross-built\n'
s += 'and no exe wrapper is defined. You might want to set it to native instead.'
s = s % exe.name