mirror of https://github.com/ARMmbed/mbed-os.git
De-duplicate the include paths. Without this all compiles are passed include paths twice
parent
868942a148
commit
f01e1363d1
|
@ -485,13 +485,11 @@ class mbedToolchain:
|
||||||
self.compiled = 0
|
self.compiled = 0
|
||||||
self.temp_dir = build_path
|
self.temp_dir = build_path
|
||||||
|
|
||||||
#for i in self.build_params:
|
|
||||||
# self.debug(i)
|
|
||||||
# self.debug("%s" % self.build_params[i])
|
|
||||||
|
|
||||||
inc_paths = resources.inc_dirs
|
inc_paths = resources.inc_dirs
|
||||||
if inc_dirs is not None:
|
if inc_dirs is not None:
|
||||||
inc_paths.extend(inc_dirs)
|
inc_paths.extend(inc_dirs)
|
||||||
|
# De-duplicate include paths and sort for consistency
|
||||||
|
inc_paths = sorted(set(inc_paths))
|
||||||
|
|
||||||
objects = []
|
objects = []
|
||||||
queue = []
|
queue = []
|
||||||
|
@ -499,6 +497,7 @@ class mbedToolchain:
|
||||||
|
|
||||||
# The dependency checking for C/C++ is delegated to the compiler
|
# The dependency checking for C/C++ is delegated to the compiler
|
||||||
base_path = resources.base_path
|
base_path = resources.base_path
|
||||||
|
# Sort compile queue for consistency
|
||||||
files_to_compile.sort()
|
files_to_compile.sort()
|
||||||
work_dir = getcwd()
|
work_dir = getcwd()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue