aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-06-07 20:09:43 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-06-07 20:09:43 +0300
commit7c03bfb46340995687354f478ad02d6751d80bd1 (patch)
treec2dcf8963bb64822570e1094dbd68ed9c952a8b7 /mesonbuild/environment.py
parentb6dbb4ecc6eae8b177df2f3a78fc754002b22493 (diff)
parentb32c757073c3227a05d770ec56d953f5aac663d0 (diff)
downloadmeson-7c03bfb46340995687354f478ad02d6751d80bd1.zip
meson-7c03bfb46340995687354f478ad02d6751d80bd1.tar.gz
meson-7c03bfb46340995687354f478ad02d6751d80bd1.tar.bz2
Merged needs_exe_wrapper branch.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 7c83ed6..d21c6cc 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -908,6 +908,9 @@ class CrossBuildInfo:
return 'host_machine' in self.config
def need_exe_wrapper(self):
+ value = self.config['properties'].get('needs_exe_wrapper', None)
+ if value is not None:
+ return value
# Can almost always run 32-bit binaries on 64-bit natively if the host
# and build systems are the same. We don't pass any compilers to
# detect_cpu_family() here because we always want to know the OS