Skip to content

Commit d0498fa

Browse files
committed
Revert "[sanitizer_common] Show new unexpected symbols."
This reverts commit 68d73df.
1 parent 7bea22d commit d0498fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,8 @@ $CC $FLAGS -fno-lto -c opt.bc -o symbolizer.o
178178

179179
echo "Checking undefined symbols..."
180180
nm -f posix -g symbolizer.o | cut -f 1,2 -d \ | LC_COLLATE=C sort -u > undefined.new
181-
if diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]"; then
182-
echo "Failed: unexpected symbols"
183-
exit 1
184-
fi
181+
(diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]") && \
182+
(echo "Failed: unexpected symbols"; exit 1)
185183

186184
arch() {
187185
objdump -f $1 | grep -m1 -Po "(?<=file format ).*$"

0 commit comments

Comments
 (0)