diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-08-28 22:11:33 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-30 14:00:54 -0400 |
commit | ab773ff9e8cecce7c761e8d99652869862fa8cad (patch) | |
tree | 0f52d9bb03c35effbfa9fd38da19aae8858ce911 /mesonbuild/interpreter/mesonmain.py | |
parent | 41c96d50af65ffd3946a7120ef335d7204557596 (diff) | |
download | meson-ab773ff9e8cecce7c761e8d99652869862fa8cad.zip meson-ab773ff9e8cecce7c761e8d99652869862fa8cad.tar.gz meson-ab773ff9e8cecce7c761e8d99652869862fa8cad.tar.bz2 |
Simplify condition in can_run_host_binaries()
Diffstat (limited to 'mesonbuild/interpreter/mesonmain.py')
-rw-r--r-- | mesonbuild/interpreter/mesonmain.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mesonbuild/interpreter/mesonmain.py b/mesonbuild/interpreter/mesonmain.py index a1ba445..5355c47 100644 --- a/mesonbuild/interpreter/mesonmain.py +++ b/mesonbuild/interpreter/mesonmain.py @@ -237,13 +237,12 @@ class MesonMain(MesonInterpreterObject): return self.can_run_host_binaries_impl(args, kwargs) def can_run_host_binaries_impl(self, args, kwargs): - if (self.is_cross_build_method(None, None) and - self.build.environment.need_exe_wrapper()): - if self.build.environment.exe_wrapper is None: - return False - # We return True when exe_wrap is defined, when it's not needed, and - # when we're compiling natively. The last two are semantically confusing. - # Need to revisit this. + if (self.build.environment.is_cross_build() and + self.build.environment.need_exe_wrapper() and + self.build.environment.exe_wrapper is None): + return False + # We return True when exe_wrap is defined, when it's not needed, or + # when we're compiling natively. return True @noPosargs |