Fixes a bug causing sources to appear multiple times in sources.py
This bug occurred because we were:
1) Concatenating all of the .o.d Makefiles together that were required
to compile libunwindstack.
2) Finding unique lines among those files
3) Extracting the source file path from each of those lines.
The problem was with the format of each build rule in the .o.d file:
If a source file was the last file for one build rule but not the last
for another, then both would make it through our unique filter because
one of those lines would have a trailing backslash but the other
This fixes that bug by extracting the source file path before
identifying unique sources.
Reviewed-by: Mike Wittman <email@example.com>
1 file changed