diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-10 01:11:00 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-10 01:11:00 +0200 |
commit | 705bd4b5295272db678a31a06e70b97dc345d03d (patch) | |
tree | 2ea03eb1f7fbf6fe47ba52be567f496e0a9a0b50 | |
parent | f4b49734e5300079cddbc5a6c5f40f937fa72357 (diff) | |
download | meson-705bd4b5295272db678a31a06e70b97dc345d03d.zip meson-705bd4b5295272db678a31a06e70b97dc345d03d.tar.gz meson-705bd4b5295272db678a31a06e70b97dc345d03d.tar.bz2 |
Add Python executable to command list when regenerating build.
-rwxr-xr-x | backends.py | 5 |
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') |