Skip to content

Commit 1b63202

Browse files
author
Mo Chen
committed
Put quotes around include files
This fixes a problem when the path to include files have spaces. See ARMmbed/mbed-os-example-uvisor#31 for an example of this problem. Signed-off-by: Mo Chen <[email protected]>
1 parent 8d6bc1d commit 1b63202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def get_inc_file(self, includes):
740740
c = c.replace("\\", "/")
741741
if self.CHROOT:
742742
c = c.replace(self.CHROOT, '')
743-
cmd_list.append('-I%s' % c)
743+
cmd_list.append('"-I%s"' % c)
744744
string = " ".join(cmd_list)
745745
f.write(string)
746746
return include_file

0 commit comments

Comments
 (0)