aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-22 18:46:15 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-23 17:29:29 +0300
commit2a341dd4ec51e391c4e5e249d9b193dfe1cbd4bf (patch)
treeb53bd360dafa267c5ba87dab3939f3b8f3ccbe82
parent7fba94997fd3f724ed19afb6e6ba5d5947f3c35b (diff)
downloadmeson-2a341dd4ec51e391c4e5e249d9b193dfe1cbd4bf.zip
meson-2a341dd4ec51e391c4e5e249d9b193dfe1cbd4bf.tar.gz
meson-2a341dd4ec51e391c4e5e249d9b193dfe1cbd4bf.tar.bz2
Xcode: ever more quoting.
-rw-r--r--mesonbuild/backend/xcodebackend.py5
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)