From 58167a20710a0a90e70e7866eb2d910a06a9db71 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Thu, 11 May 2017 14:20:09 -0500 Subject: [PATCH] All C files depend on mbed_app.json --- tools/toolchains/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index ff47c36643..98be3cabec 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -909,7 +909,9 @@ class mbedToolchain: 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): + config_file = ([self.config.app_config_location] + if self.config.app_config_location else []) + if len(deps) == 0 or self.need_update(object, deps + config_file): if ext == '.cpp' or self.COMPILE_C_AS_CPP: return self.compile_cpp(source, object, includes) else: