diff --git a/mk/check-symbol-prefixes.sh b/mk/check-symbol-prefixes.sh index 247dec9930..60b079a2dc 100755 --- a/mk/check-symbol-prefixes.sh +++ b/mk/check-symbol-prefixes.sh @@ -44,7 +44,7 @@ nm_exe="${llvm_root}/llvm-nm" # # 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 +find "target/$target" -type f -name "libring-*.rlib" | while read -r infile; do bad=$($nm_exe --defined-only --extern-only --print-file-name "$infile" \ | ( grep -v -E " . _?(__imp__ZN4ring|ring_core_|__rustc|_ZN|DW.ref.rust_eh_personality)" || [[ $? == 1 ]] )) if [ -n "${bad-}" ]; then