Use include paths when compiling

We were using include names before
pull/7183/head
Jimmy Brisson 2018-06-13 14:02:39 -05:00
parent 60e08b196c
commit 0661578054
1 changed files with 2 additions and 1 deletions

View File

@ -374,7 +374,8 @@ class mbedToolchain:
self.notify.cc_verbose("Macros: "+' '.join(['-D%s' % s for s in self.get_symbols()]))
inc_paths = resources.inc_dirs
inc_paths = [path for _, path
in resources.get_file_refs(FileType.INC_DIR)]
if inc_dirs is not None:
if isinstance(inc_dirs, list):
inc_paths.extend(inc_dirs)