Add Python executable to command list when regenerating build.

pull/15/head
Jussi Pakkanen 12 years ago
parent f4b49734e5
commit 705bd4b529
  1. 5
      backends.py

@ -382,10 +382,11 @@ class NinjaBackend(Backend):
outfile.write(' description = $DESC\n') outfile.write(' description = $DESC\n')
outfile.write(' restat = 1\n\n') outfile.write(' restat = 1\n\n')
outfile.write('rule REGENERATE_BUILD\n') outfile.write('rule REGENERATE_BUILD\n')
c = (ninja_quote(self.environment.get_build_command()), c = (sys.executable,
ninja_quote(self.environment.get_build_command()),
ninja_quote(self.environment.get_source_dir()), ninja_quote(self.environment.get_source_dir()),
ninja_quote(self.environment.get_build_dir())) ninja_quote(self.environment.get_build_dir()))
outfile.write(" command = '%s' '%s' '%s' --backend ninja\n" % c) outfile.write(" command = '%s' %s' '%s' '%s' --backend ninja\n" % c)
outfile.write(' description = Regenerating build files\n') outfile.write(' description = Regenerating build files\n')
outfile.write(' generator = 1\n\n') outfile.write(' generator = 1\n\n')

Loading…
Cancel
Save