diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-22 18:46:15 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-22 18:46:15 +0300 |
commit | d2486796247d4f8c10dd3ac4d5f686213a8145c4 (patch) | |
tree | c3215f0ed496da2a0df40043c53a8a17493bf092 | |
parent | 9afa1775f3fb3bebe8cdab517624ba525a9638bd (diff) | |
download | meson-d2486796247d4f8c10dd3ac4d5f686213a8145c4.zip meson-d2486796247d4f8c10dd3ac4d5f686213a8145c4.tar.gz meson-d2486796247d4f8c10dd3ac4d5f686213a8145c4.tar.bz2 |
Xcode: ever more quoting.
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index f2f933c..9f72aee 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -1114,7 +1114,10 @@ class XCodeBackend(backends.Backend): custom_dict.add_item('runOnlyForDeploymentPostprocessing', 0) custom_dict.add_item('shellPath', '/bin/sh') workdir = self.environment.get_build_dir() - cmdstr = ' '.join([f"\\'{x}\\'" for x in fixed_cmd]) + quoted_cmd = [] + for c in fixed_cmd: + quoted_cmd.append(c.replace('"', chr(92) + '"')) + cmdstr = ' '.join([f"\\'{x}\\'" for x in quoted_cmd]) custom_dict.add_item('shellScript', f'"cd {workdir}; {cmdstr}"') custom_dict.add_item('showEnvVarsInLog', 0) |