Skip to content

Commit

Permalink
Use -opaque-pointers mode
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Oct 21, 2022
1 parent 7a5d979 commit 300f58c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mk/check-symbol-prefixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ aarch64-unknown-linux-gnu|*-musl*|wasm32-*)
android_tools=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin
ar_exe=$android_tools/llvm-ar
nm_exe=$android_tools/llvm-nm
nm_args=-opaque-pointers
;;
esac

Expand All @@ -60,7 +61,7 @@ find target/$target -type f -name libring-*.rlib | while read -r infile; do
cp "$infile" "$tmpfile"
$ar_exe d "$tmpfile" lib.rmeta

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

rm "$tmpfile"
Expand Down

0 comments on commit 300f58c

Please sign in to comment.