mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4749 from 0xc0170/fix_inc_paths
tools: fix toolchain extend inc pathspull/4835/head
commit
8148329fc8
|
|
@ -863,7 +863,10 @@ class mbedToolchain:
|
|||
|
||||
inc_paths = resources.inc_dirs
|
||||
if inc_dirs is not None:
|
||||
inc_paths.extend(inc_dirs)
|
||||
if isinstance(inc_dirs, list):
|
||||
inc_paths.extend(inc_dirs)
|
||||
else:
|
||||
inc_paths.append(inc_dirs)
|
||||
# De-duplicate include paths
|
||||
inc_paths = set(inc_paths)
|
||||
# Sort include paths for consistency
|
||||
|
|
|
|||
Loading…
Reference in New Issue