aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorOleg B <code.viator@gmail.com>2020-12-13 17:32:52 +0300
committerGitHub <noreply@github.com>2020-12-13 16:32:52 +0200
commitb8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9 (patch)
tree9f31603cddde514cd90f835e5a93e8d24323fd2a /mesonbuild/mtest.py
parent7437d9862a16bab3fd0c025769d5928f2ed1548e (diff)
downloadmeson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.zip
meson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.tar.gz
meson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.tar.bz2
Support native tests in crossbuild
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 04c1a57..a92b5cc 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -650,7 +650,7 @@ class SingleTestRunner:
return ['java', '-jar'] + self.test.fname
elif not self.test.is_cross_built and run_with_mono(self.test.fname[0]):
return ['mono'] + self.test.fname
- elif self.test.cmd_is_built and self.test.needs_exe_wrapper:
+ elif self.test.cmd_is_built and self.test.is_cross_built and self.test.needs_exe_wrapper:
if self.test.exe_runner is None:
# Can not run test on cross compiled executable
# because there is no execute wrapper.