[compiler-rt] 68d73df - [sanitizer_common] Show new unexpected symbols.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 09:43:46 PDT 2020
Author: Matt Morehouse
Date: 2020-04-06T09:43:33-07:00
New Revision: 68d73dfa1a422fd045e25d06c3e8ff01621c377a
URL: https://github.com/llvm/llvm-project/commit/68d73dfa1a422fd045e25d06c3e8ff01621c377a
DIFF: https://github.com/llvm/llvm-project/commit/68d73dfa1a422fd045e25d06c3e8ff01621c377a.diff
LOG: [sanitizer_common] Show new unexpected symbols.
Added:
Modified:
compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
index be79f1df64ba..a5262520305f 100755
--- a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
+++ b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
@@ -178,8 +178,10 @@ $CC $FLAGS -fno-lto -c opt.bc -o symbolizer.o
echo "Checking undefined symbols..."
nm -f posix -g symbolizer.o | cut -f 1,2 -d \ | LC_COLLATE=C sort -u > undefined.new
-(
diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]") && \
- (echo "Failed: unexpected symbols"; exit 1)
+if
diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]"; then
+ echo "Failed: unexpected symbols"
+ exit 1
+fi
arch() {
objdump -f $1 | grep -m1 -Po "(?<=file format ).*$"
More information about the llvm-commits
mailing list