Simplify condition in can_run_host_binaries()

pull/9196/head
Xavier Claessens 3 years ago committed by Xavier Claessens
parent 41c96d50af
commit ab773ff9e8
  1. 13
      mesonbuild/interpreter/mesonmain.py

@ -237,13 +237,12 @@ class MesonMain(MesonInterpreterObject):
return self.can_run_host_binaries_impl(args, kwargs) return self.can_run_host_binaries_impl(args, kwargs)
def can_run_host_binaries_impl(self, args, kwargs): def can_run_host_binaries_impl(self, args, kwargs):
if (self.is_cross_build_method(None, None) and if (self.build.environment.is_cross_build() and
self.build.environment.need_exe_wrapper()): self.build.environment.need_exe_wrapper() and
if self.build.environment.exe_wrapper is None: self.build.environment.exe_wrapper is None):
return False return False
# We return True when exe_wrap is defined, when it's not needed, and # We return True when exe_wrap is defined, when it's not needed, or
# when we're compiling natively. The last two are semantically confusing. # when we're compiling natively.
# Need to revisit this.
return True return True
@noPosargs @noPosargs

Loading…
Cancel
Save