diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2019-01-26 11:12:08 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-27 20:10:09 +0200 |
commit | 2dcb6eb0b3d7574b9fa97f962b715bebe1d043ef (patch) | |
tree | fe94c83111b4baa935ed6d0d42982b801f0cf026 | |
parent | 33d82201bd4114d9bd81b45bce86d7938bc30869 (diff) | |
download | meson-2dcb6eb0b3d7574b9fa97f962b715bebe1d043ef.zip meson-2dcb6eb0b3d7574b9fa97f962b715bebe1d043ef.tar.gz meson-2dcb6eb0b3d7574b9fa97f962b715bebe1d043ef.tar.bz2 |
vs: escape embedded quotes of run targets
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 939f7b4..4ae41f8 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -509,6 +509,9 @@ class Vs2010Backend(backends.Backend): elif isinstance(i, File): relfname = i.rel_to_builddir(self.build_to_src) cmd.append(os.path.join(self.environment.get_build_dir(), relfname)) + elif isinstance(i, str): + # Escape embedded quotes, because we quote the entire argument below. + cmd.append(i.replace('"', '\\"')) else: cmd.append(i) cmd_templ = '''"%s" ''' * len(cmd) |