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