From 38b87ba49d2a774f8c6be8ee424c65b29749a4a8 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 22 Nov 2022 11:38:04 +0800 Subject: [PATCH] Asan: Cleanup for testing for asan. --- trunk/auto/depends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index b9d953cdc6..6144f4c26f 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -339,7 +339,7 @@ if [[ $SRS_SANITIZER == YES && $OS_IS_X86_64 == YES ]]; then echo 'int main() { return 0; }' > ${SRS_OBJS}/test_sanitizer.cc && gcc -fsanitize=address -fno-omit-frame-pointer -g -O0 ${SRS_OBJS}/test_sanitizer.cc \ -o ${SRS_OBJS}/test_sanitizer 1>/dev/null 2>&1; - ret=$?; rm -f ${SRS_OBJS}/test_sanitizer ${SRS_OBJS}/test_sanitizer.cc + ret=$?; rm -rf ${SRS_OBJS}/test_sanitizer* if [[ $ret -ne 0 ]]; then echo "Please install libasan, see https://github.com/google/sanitizers"; if [[ $OS_IS_CENTOS == YES ]]; then echo " sudo yum install -y libasan"; fi