aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackends.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends.py b/backends.py
index 73936f6..5fa6e89 100755
--- a/backends.py
+++ b/backends.py
@@ -382,10 +382,11 @@ class NinjaBackend(Backend):
outfile.write(' description = $DESC\n')
outfile.write(' restat = 1\n\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_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(' generator = 1\n\n')