build: ensure object files are included even if unparsable

This commit is contained in:
Samuel Attard 2021-05-23 19:42:16 -07:00
parent 32d8809283
commit e345ef13ca
No known key found for this signature in database
GPG key ID: FB94249299E904FE

View file

@ -22,6 +22,9 @@ def get_object_files(base_path, archive_name):
if line.startswith(base_path):
object_file = line.split(":")[0]
object_files.add(object_file)
if line.startswith('nm: '):
object_file = line.split(":")[1].lstrip()
object_files.add(object_file)
return list(object_files) + [archive_file]
def main(argv):