mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
8d6bc1d47d
commit
1b63202c27
|
@ -740,7 +740,7 @@ class mbedToolchain:
|
||||||
c = c.replace("\\", "/")
|
c = c.replace("\\", "/")
|
||||||
if self.CHROOT:
|
if self.CHROOT:
|
||||||
c = c.replace(self.CHROOT, '')
|
c = c.replace(self.CHROOT, '')
|
||||||
cmd_list.append('-I%s' % c)
|
cmd_list.append('"-I%s"' % c)
|
||||||
string = " ".join(cmd_list)
|
string = " ".join(cmd_list)
|
||||||
f.write(string)
|
f.write(string)
|
||||||
return include_file
|
return include_file
|
||||||
|
|
Loading…
Reference in New Issue