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

This commit is contained in:
Alibek Omarov 2023-04-10 17:35:21 +00:00
parent 36376fbaca
commit 87566c681b
1 changed files with 2 additions and 2 deletions

View File

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