mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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/trunk@242721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aebc086781
commit
186b3e7e9e
@ -486,8 +486,8 @@ for Flavor in $Flavors ; do
|
|||||||
# Substitute 'Phase2' for 'Phase3' in the Phase 2 object file in
|
# Substitute 'Phase2' for 'Phase3' in the Phase 2 object file in
|
||||||
# case there are build paths in the debug info. On some systems,
|
# case there are build paths in the debug info. On some systems,
|
||||||
# sed adds a newline to the output, so pass $p3 through sed too.
|
# sed adds a newline to the output, so pass $p3 through sed too.
|
||||||
if ! cmp --ignore-initial=16 <(sed -e 's,Phase2,Phase3,g' $p2) \
|
if ! cmp -s <(sed -e 's,Phase2,Phase3,g' $p2) <(sed -e '' $p3) \
|
||||||
<(sed -e '' $p3) > /dev/null 2>&1 ; then
|
16 16 ; then
|
||||||
echo "file `basename $p2` differs between phase 2 and phase 3"
|
echo "file `basename $p2` differs between phase 2 and phase 3"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user