diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 18:07:25 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 18:14:14 +0300 |
commit | e5bbc0f27cb4a5265e788def25f21bb1c5338ce6 (patch) | |
tree | 5881877375d00b5bcca24d732b8b8600cae1225e /backends.py | |
parent | 4c3cb395ce2fb63aac9b6411175d8c602a9e5753 (diff) | |
download | meson-e5bbc0f27cb4a5265e788def25f21bb1c5338ce6.zip meson-e5bbc0f27cb4a5265e788def25f21bb1c5338ce6.tar.gz meson-e5bbc0f27cb4a5265e788def25f21bb1c5338ce6.tar.bz2 |
Quote rule properly on Windows.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends.py b/backends.py index abd907e..37f74c9 100644 --- a/backends.py +++ b/backends.py @@ -538,11 +538,11 @@ class NinjaBackend(Backend): outfile.write(' description = $DESC\n') outfile.write(' restat = 1\n\n') outfile.write('rule REGENERATE_BUILD\n') - c = (ninja_quote(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' '%s' --backend ninja secret-handshake\n" % c) + c = (quote_char + ninja_quote(sys.executable) + quote_char, + quote_char + ninja_quote(self.environment.get_build_command()) + quote_char, + quote_char + ninja_quote(self.environment.get_source_dir()) + quote_char, + quote_char + ninja_quote(self.environment.get_build_dir()) + quote_char) + outfile.write(" command = %s %s %s %s --backend ninja secret-handshake\n" % c) outfile.write(' description = Regenerating build files\n') outfile.write(' generator = 1\n\n') if len(self.build.pot) > 0: |