← Commit list

49bdf28c3

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2008-05-21
FAILED Duration: 25s

Subject

- skip empty lines and archive members

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/bloat-o-meter+6 -0
@@ -21,6 +21,12 @@ for f in sys.argv[1], sys.argv[2]:
def getsizes(file):
sym = {}
for l in os.popen("nm --size-sort " + file).readlines():
+ l = l.strip()
+ # Skip empty lines
+ if not len(l): continue
+ # Skip archive members
+ if len(l.split()) == 1 and l.endswith(':'):
+ continue
size, type, name = l[:-1].split()
if type in "tTdDbBrR":
if "." in name: name = "static." + name.split(".")[0]