Pass through more LIBCXX_* variables to libfuzzer's custom lib++
authorColin Cross <ccross@google.com>
Fri, 4 Mar 2022 06:17:15 +0000 (22:17 -0800)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 4 Mar 2022 17:31:37 +0000 (09:31 -0800)
commitbcc65fb491ca6e83e1ea300f4462a2f56d0b5937
treeb842a9ae5445899d699f7f8057dd65a2a9e305cc
parentdd33f9cdef9f6209aa34713e1417f4a2e24e5ca6
Pass through more LIBCXX_* variables  to libfuzzer's custom lib++

Pass LIBCXX_HAS_PTHREAD_LIB, LIBCXX_HAS_RT_LIB  and LIBCXXABI_HAS_PTHREAD_LIB
through to the custom lib++ builds so that libfuzzer  doesn't end up with a .deplibs section that
links against those libraries when the variables are set to false.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D120946
compiler-rt/cmake/Modules/AddCompilerRT.cmake