mirror of https://github.com/ARMmbed/mbed-os.git
Put quotes around include path options
This fixes a compile error when the path has space characters.pull/8595/head
parent
1bbcfff8f3
commit
2c77c1edd6
|
@ -331,7 +331,7 @@ class mbedToolchain:
|
|||
"""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")
|
||||
|
|
Loading…
Reference in New Issue