[libcxx] Enable building and testing of libcxx with ThreadSanitizer on OS X
authorKuba Brecka <kuba.brecka@gmail.com>
Wed, 14 Sep 2016 14:12:50 +0000 (14:12 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Wed, 14 Sep 2016 14:12:50 +0000 (14:12 +0000)
commitd634df526d7cdd832eb019a38d413cfb946c59e1
tree16aa847633e945845b939dc94e885c62236ebec5
parent0a020f0fb097c78c3547fb7bc0738a202a3af45c
[libcxx] Enable building and testing of libcxx with ThreadSanitizer on OS X

This patch enables building and testing libcxx under ThreadSanitizer on OS X. CMake builds that have -DLLVM_USE_SANITIZER=Thread will automatically build libcxx with -fsanitize=thread and testing via lit then runs under TSan.

Differential Revision: https://reviews.llvm.org/D24297

llvm-svn: 281475
libcxx/lib/CMakeLists.txt