Skip to content

Commit 62538e3

Browse files
committed
Filter archives for the arm linker
the other compilers can do it for themselves
1 parent b2395a7 commit 62538e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ def link_program(self, r, tmp_path, name):
626626
linker_script = [path for _, path in r.get_file_refs(FileType.LD_SCRIPT)
627627
if path.endswith(self.LINKER_EXT)][-1]
628628
lib_dirs = r.get_file_paths(FileType.LIB_DIR)
629-
libraries = r.get_file_paths(FileType.LIB)
629+
libraries = [l for l in r.get_file_paths(FileType.LIB)
630+
if l.endswith(self.LIBRARY_EXT)]
630631
dependencies = objects + libraries + [linker_script] + config_file
631632
dependencies.append(join(self.build_dir, self.PROFILE_FILE_NAME + "-ld"))
632633
if self.need_update(elf, dependencies):

0 commit comments

Comments
 (0)