An external program is never a "cross test".

pull/2309/merge
Jussi Pakkanen 7 years ago
parent fcbefafa1f
commit 9b50a4aac1
  1. 4
      mesonbuild/backend/backends.py

@ -515,6 +515,10 @@ class Backend:
self.environment.cross_info.need_exe_wrapper() self.environment.cross_info.need_exe_wrapper()
if isinstance(exe, build.BuildTarget): if isinstance(exe, build.BuildTarget):
is_cross = is_cross and exe.is_cross is_cross = is_cross and exe.is_cross
if isinstance(exe, dependencies.ExternalProgram):
# E.g. an external verificator or simulator program run on a generated executable.
# Can always be run.
is_cross = False
if is_cross: if is_cross:
exe_wrapper = self.environment.cross_info.config['binaries'].get('exe_wrapper', None) exe_wrapper = self.environment.cross_info.config['binaries'].get('exe_wrapper', None)
else: else:

Loading…
Cancel
Save