Skip to content

Commit

Permalink
fix(ldgen): handle object files with .*.o patterns
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
valeros committed Jan 23, 2024
1 parent b3f7e2c commit bd56ca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/ldgen/ldgen/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def get_objects(self, archive):

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

Expand Down

0 comments on commit bd56ca4

Please sign in to comment.