llvm.org GIT mirror llvm / 8715f45
Merging r242721: ------------------------------------------------------------------------ r242721 | dim | 2015-07-20 15:07:27 -0700 (Mon, 20 Jul 2015) | 4 lines Since BSD cmp(1) does not support the --ignore-initial option, use the more portable 3rd and 4th arguments to skip the first 16 bytes during the comparison of Phase2 and Phase3 objects. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@242860 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
469469 # Substitute 'Phase2' for 'Phase3' in the Phase 2 object file in
470470 # case there are build paths in the debug info. On some systems,
471471 # sed adds a newline to the output, so pass $p3 through sed too.
472 if ! cmp --ignore-initial=16 <(sed -e 's,Phase2,Phase3,g' $p2) \
473 <(sed -e '' $p3) > /dev/null 2>&1 ; then
472 if ! cmp -s <(sed -e 's,Phase2,Phase3,g' $p2) <(sed -e '' $p3) \
473 16 16 ; then
474474 echo "file `basename $p2` differs between phase 2 and phase 3"
475475 fi
476476 done