Skip to content

Commit bbde379

Browse files
committed
Make binary depend on config directly
1 parent fd26d5b commit bbde379

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,10 @@ def link_program(self, r, tmp_path, name):
10081008
map = join(tmp_path, name + '.map')
10091009

10101010
r.objects = sorted(set(r.objects))
1011-
if self.need_update(elf, r.objects + r.libraries + [r.linker_script]):
1011+
config_file = ([self.config.app_config_location]
1012+
if self.config.app_config_location else [])
1013+
if self.need_update(elf, r.objects + r.libraries + [r.linker_script] +
1014+
config_file):
10121015
needed_update = True
10131016
self.progress("link", name)
10141017
self.link(elf, r.objects, r.libraries, r.lib_dirs, r.linker_script)

0 commit comments

Comments
 (0)