Skip to content

Commit 129a736

Browse files
committed
Don't use Werror for thread-safety-analysis
This causes a false positive warning with clang 6, resulting in a build failure on FreeBSD 11.
1 parent 5f27897 commit 129a736

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ append_list_if(COMPILER_RT_DEBUG -DSANITIZER_DEBUG=1 SANITIZER_COMMON_CFLAGS)
361361

362362
if(CMAKE_CXX_COMPILER_ID MATCHES Clang)
363363
list(APPEND THREAD_SAFETY_FLAGS
364-
"-Werror=thread-safety"
365-
"-Werror=thread-safety-reference"
366-
"-Werror=thread-safety-beta"
364+
"-Wthread-safety"
365+
"-Wthread-safety-reference"
366+
"-Wthread-safety-beta"
367367
)
368368
list(APPEND SANITIZER_COMMON_CFLAGS ${THREAD_SAFETY_FLAGS})
369369
string(REPLACE ";" " " thread_safety_flags_space_sep "${THREAD_SAFETY_FLAGS}")

0 commit comments

Comments
 (0)