Throw a warning when multiple scatter files are found and show their location

pull/596/merge
Mihail Stoyanov 2014-10-23 19:21:11 +03:00
parent 728a815b31
commit 8949f8b036
1 changed files with 2 additions and 0 deletions

View File

@ -369,6 +369,8 @@ class mbedToolchain:
resources.lib_dirs.add(root)
elif ext == self.LINKER_EXT:
if resources.linker_script is not None:
self.info("Warning: Multiple linker scripts detected: %s -> %s" % (resources.linker_script, file_path))
resources.linker_script = file_path
elif ext == '.lib':