xcode: Enclose work directory in shell scripts

pull/12618/head
Albert Tang 1 year ago committed by Eli Schwartz
parent 1de398a377
commit 354843c428
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/backend/xcodebackend.py

@ -1250,7 +1250,7 @@ class XCodeBackend(backends.Backend):
for c in fixed_cmd: for c in fixed_cmd:
quoted_cmd.append(c.replace('"', chr(92) + '"')) quoted_cmd.append(c.replace('"', chr(92) + '"'))
cmdstr = ' '.join([f"\\'{x}\\'" for x in quoted_cmd]) cmdstr = ' '.join([f"\\'{x}\\'" for x in quoted_cmd])
custom_dict.add_item('shellScript', f'"cd {workdir}; {cmdstr}"') custom_dict.add_item('shellScript', f'"cd \'{workdir}\'; {cmdstr}"')
custom_dict.add_item('showEnvVarsInLog', 0) custom_dict.add_item('showEnvVarsInLog', 0)
def generate_generator_target_shell_build_phases(self, objects_dict): def generate_generator_target_shell_build_phases(self, objects_dict):

Loading…
Cancel
Save