Skip to content

Commit

Permalink
mk/check-symbol-prefixes.sh: Move comment to correct place.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Oct 21, 2022
1 parent 993da11 commit 7a5d979
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mk/check-symbol-prefixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ esac
# This is very liberal in filtering out symbols that "look like"
# Rust-compiler-generated symbols.
find target/$target -type f -name libring-*.rlib | while read -r infile; do
# `nm` doesn't understand `lib.rmeta`.
tmpfile=$infile-without-lib-rmeta
cp "$infile" "$tmpfile"
# `nm` doesn't understand `lib.rmeta`.
$ar_exe d "$tmpfile" lib.rmeta

bad=$($nm_exe --defined-only --extern-only --print-file-name "$tmpfile" \
| ( grep -v -E " . _?(ring_core_|__rustc|_ZN|DW.ref.rust_eh_personality)" || [[ $? == 1 ]] ))

rm "$tmpfile"

if [ ! -z "${bad-}" ]; then
echo "$bad"
exit 1
Expand Down

0 comments on commit 7a5d979

Please sign in to comment.