mirror of https://github.com/ARMmbed/mbed-os.git
Allow dependency parsing to fail, gracefully continuing
parent
96e1d5bd73
commit
c3915215e4
|
@ -887,7 +887,10 @@ class mbedToolchain:
|
||||||
if ext == '.c' or ext == '.cpp':
|
if ext == '.c' or ext == '.cpp':
|
||||||
base, _ = splitext(object)
|
base, _ = splitext(object)
|
||||||
dep_path = base + '.d'
|
dep_path = base + '.d'
|
||||||
deps = self.parse_dependencies(dep_path) if (exists(dep_path)) else []
|
try:
|
||||||
|
deps = self.parse_dependencies(dep_path) if (exists(dep_path)) else []
|
||||||
|
except IOError, IndexError:
|
||||||
|
deps = []
|
||||||
if len(deps) == 0 or self.need_update(object, deps):
|
if len(deps) == 0 or self.need_update(object, deps):
|
||||||
if ext == '.cpp' or self.COMPILE_C_AS_CPP:
|
if ext == '.cpp' or self.COMPILE_C_AS_CPP:
|
||||||
return self.compile_cpp(source, object, includes)
|
return self.compile_cpp(source, object, includes)
|
||||||
|
|
Loading…
Reference in New Issue