From 2c77c1edd640f4fe76ffb6c60f24ca05f45427c5 Mon Sep 17 00:00:00 2001 From: Mo Chen Date: Tue, 30 Oct 2018 17:11:47 -0500 Subject: [PATCH] Put quotes around include path options This fixes a compile error when the path has space characters. --- tools/toolchains/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index c32d48aada..1781ef455c 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -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")