aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-diff/lib/DiffLog.h
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2021-08-04 20:33:48 +0200
committerDimitry Andric <dimitry@andric.com>2021-08-05 20:07:24 +0200
commitb260f3fdda63bbddb7834c42cfeeb2b0a8b86a23 (patch)
tree144e97a06bc0c76540f92ad6aa79fe392d29ed0d /llvm/tools/llvm-diff/lib/DiffLog.h
parentf8b6e1faa913748695fa920a6d4d91f780c291f8 (diff)
downloadllvm-b260f3fdda63bbddb7834c42cfeeb2b0a8b86a23.zip
llvm-b260f3fdda63bbddb7834c42cfeeb2b0a8b86a23.tar.gz
llvm-b260f3fdda63bbddb7834c42cfeeb2b0a8b86a23.tar.bz2
sanitizer_common: disable thread safety annotations for googletest
Recently in 0da172b1766e thread safety warnings-as-errors were enabled. However, googletest is currently not compatible with thread safety annotations. On FreeBSD, which has the pthread functions marked with such annotations, this results in errors when building the compiler-rt tests: In file included from compiler-rt/lib/interception/tests/interception_test_main.cpp:15: In file included from llvm/utils/unittest/googletest/include/gtest/gtest.h:62: In file included from llvm/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:40: llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1636:3: error: mutex 'mutex_' is still held at the end of function [-Werror,-Wthread-safety-analysis] } ^ llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1633:32: note: mutex acquired here GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_)); ^ llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1645:32: error: releasing mutex 'mutex_' that was not held [-Werror,-Wthread-safety-analysis] GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_)); ^ 2 errors generated. At some point googletest will hopefully be made compatible with thread safety annotations, but for now add corresponding `-Wno-thread-*` flags to `COMPILER_RT_GTEST_CFLAGS` to silence these warnings-as-errors. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D107491
Diffstat (limited to 'llvm/tools/llvm-diff/lib/DiffLog.h')
0 files changed, 0 insertions, 0 deletions