Skip to content

Commit

Permalink
Asan: Cleanup for testing for asan.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 22, 2022
1 parent cdbebb3 commit 38b87ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/auto/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38b87ba

Please sign in to comment.