Put full path to exe_wrapped run targets in case the runner script assumes that the runnable binary needs to be in PATH.

pull/255/head^2
Jussi Pakkanen 9 years ago
parent 840acdd028
commit 33217038b4
  1. 6
      ninjabackend.py

@ -329,12 +329,12 @@ class NinjaBackend(backends.Backend):
except AttributeError:
pass
if isinstance(texe, build.Executable):
abs_exe = os.path.join(self.environment.get_build_dir(), self.get_target_filename(texe))
deps.append(self.get_target_filename(texe))
if self.environment.is_cross_build() \
and self.environment.cross_info.config['binaries'].get('exe_wrapper', None) is not None:
cmd += [self.environment.cross_info.config['binaries']['exe_wrapper'], self.get_target_filename(texe)]
else:
cmd += [os.path.join(self.environment.get_build_dir(), self.get_target_filename(texe))]
cmd += [self.environment.cross_info.config['binaries']['exe_wrapper']]
cmd.append(abs_exe)
else:
cmd.append(target.command)
cmd += target.args

Loading…
Cancel
Save