mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ldgen): handle object files with .*.o patterns
Currently, only `.o`, `.*.obj` and `.obj` patterns are taken into account. It would be great to have object files with the `.*.o` extension pattern (e.g. `file.cpp.o`) also processed as they're quite widespread in third-party integrations.
This commit is contained in:
parent
b3f7e2c8a4
commit
bd56ca48be
@ -181,7 +181,8 @@ class EntityDB:
|
||||
|
||||
def _match_obj(self, archive, obj):
|
||||
objs = self.get_objects(archive)
|
||||
match_objs = (fnmatch.filter(objs, obj + '.o')
|
||||
match_objs = (fnmatch.filter(objs, obj + '.*.o')
|
||||
+ fnmatch.filter(objs, obj + '.o')
|
||||
+ fnmatch.filter(objs, obj + '.*.obj')
|
||||
+ fnmatch.filter(objs, obj + '.obj'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user