Skip to content

Commit

Permalink
Put quotes around include path options
Browse files Browse the repository at this point in the history
This fixes a compile error when the path has space characters.
  • Loading branch information
Mo Chen committed Oct 30, 2018
1 parent 1bbcfff commit 2c77c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/toolchains/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def get_inc_file(self, includes):
"""Generate a via file for all includes.
ARM, GCC, IAR cross compatible
"""
cmd_list = ("-I{}".format(c.replace("\\", "/")) for c in includes if c)
cmd_list = ("\"-I{}\"".format(c.replace("\\", "/")) for c in includes if c)
if self.CHROOT:
cmd_list = (c.replace(self.CHROOT, '') for c in cmd_list)
return self.make_option_file(list(cmd_list), naming=".includes_{}.txt")
Expand Down

0 comments on commit 2c77c1e

Please sign in to comment.