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:
Valerii Koval 2024-01-23 14:45:52 +02:00 committed by valeros
parent b3f7e2c8a4
commit bd56ca48be

View File

@ -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'))