From 1df850026f07d5e71368a4e3733d0ce76f11d070 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 5633cdb6e1..3d555b9198 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")