Put quotes around include files

This fixes a problem when the path to include files have spaces.
See https://github.com/ARMmbed/mbed-os-example-uvisor/issues/31 for an
example of this problem.

Signed-off-by: Mo Chen <mo.chen@arm.com>
pull/4468/head
Mo Chen 2017-06-06 15:32:21 -05:00
parent 8d6bc1d47d
commit 1b63202c27
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ class mbedToolchain:
c = c.replace("\\", "/")
if self.CHROOT:
c = c.replace(self.CHROOT, '')
cmd_list.append('-I%s' % c)
cmd_list.append('"-I%s"' % c)
string = " ".join(cmd_list)
f.write(string)
return include_file