Skip to content

Commit 58167a2

Browse files
committed
All C files depend on mbed_app.json
1 parent bbde379 commit 58167a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,9 @@ def compile_command(self, source, object, includes):
909909
deps = self.parse_dependencies(dep_path) if (exists(dep_path)) else []
910910
except IOError, IndexError:
911911
deps = []
912-
if len(deps) == 0 or self.need_update(object, deps):
912+
config_file = ([self.config.app_config_location]
913+
if self.config.app_config_location else [])
914+
if len(deps) == 0 or self.need_update(object, deps + config_file):
913915
if ext == '.cpp' or self.COMPILE_C_AS_CPP:
914916
return self.compile_cpp(source, object, includes)
915917
else:

0 commit comments

Comments
 (0)