|
Last change
on this file was
18322,
checked in by westram, 6 years ago
|
- check symbol listings (generated for unittests) for unwanted duplicated symbols.
- be quiet if no duplicate detected.
|
-
Property svn:executable set to
*
|
|
File size:
753 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | FULLLIB=$1 |
|---|
| 3 | SYMLIST=$2 |
|---|
| 4 | |
|---|
| 5 | # nm is unable to demangle names on OSX. use c++filt for the job. |
|---|
| 6 | # some nm versions (e.g. inside homebrew) do not know how to inform about line number |
|---|
| 7 | # (should only affect locating failing tests). |
|---|
| 8 | if [ ${DARWIN} = 0 ]; then |
|---|
| 9 | NMARG=-l |
|---|
| 10 | fi |
|---|
| 11 | DUMP_SYMBOLS="nm $NMARG $FULLLIB | c++filt > $SYMLIST" |
|---|
| 12 | |
|---|
| 13 | # temp workaround for using gcc 4.8 on dwarf 3 system |
|---|
| 14 | ( eval "$DUMP_SYMBOLS" ) 2>&1 \ |
|---|
| 15 | | grep -v "Dwarf Error: Invalid or unhandled FORM value" \ |
|---|
| 16 | | grep -v "this reader only handles version 2 and 3 information" \ |
|---|
| 17 | | grep -v "this reader can not handle sizes greater than '8'" \ |
|---|
| 18 | | grep -v "this reader can only handle address sizes '2', '4' and '8'" \ |
|---|
| 19 | |
|---|
| 20 | if (( ${PIPESTATUS[0]} )); then false; else true; fi |
|---|
| 21 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.