Merge branch 'a1batross-master-patch-25634' into 'master'

waflib: extras: msvs: enclose solution path into doublequotes in generated shell commands

See merge request ita1024/waf!2353
This commit is contained in:
ita1024 2023-04-10 17:57:59 +00:00
commit ee63711f97
1 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ class vsnode_project(vsnode):
self.build_properties = ret
def get_build_params(self, props):
opt = '--execsolution=%s' % self.ctx.get_solution_node().win32path()
opt = '--execsolution="%s"' % self.ctx.get_solution_node().win32path()
return (self.get_waf(), opt)
def get_build_command(self, props):
@ -681,7 +681,7 @@ class vsnode_target(vsnode_project):
"""
Override the default to add the target name
"""
opt = '--execsolution=%s' % self.ctx.get_solution_node().win32path()
opt = '--execsolution="%s"' % self.ctx.get_solution_node().win32path()
if getattr(self, 'tg', None):
opt += " --targets=%s" % self.tg.name
return (self.get_waf(), opt)