forked from espressif/esp-idf
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:
@@ -181,7 +181,8 @@ class EntityDB:
|
|||||||
|
|
||||||
def _match_obj(self, archive, obj):
|
def _match_obj(self, archive, obj):
|
||||||
objs = self.get_objects(archive)
|
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')
|
||||||
+ fnmatch.filter(objs, obj + '.obj'))
|
+ fnmatch.filter(objs, obj + '.obj'))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user