Skip to content

Commit 2c77c1e

Browse files
author
Mo Chen
committed
Put quotes around include path options
This fixes a compile error when the path has space characters.
1 parent 1bbcfff commit 2c77c1e

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
@@ -331,7 +331,7 @@ def get_inc_file(self, includes):
331331
"""Generate a via file for all includes.
332332
ARM, GCC, IAR cross compatible
333333
"""
334-
cmd_list = ("-I{}".format(c.replace("\\", "/")) for c in includes if c)
334+
cmd_list = ("\"-I{}\"".format(c.replace("\\", "/")) for c in includes if c)
335335
if self.CHROOT:
336336
cmd_list = (c.replace(self.CHROOT, '') for c in cmd_list)
337337
return self.make_option_file(list(cmd_list), naming=".includes_{}.txt")

0 commit comments

Comments
 (0)