Skip to content

Commit bcc65fb

Browse files
colincrosspirama-arumuga-nainar
authored andcommitted
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
1 parent dd33f9c commit bcc65fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/cmake/Modules/AddCompilerRT.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ macro(add_custom_libcxx name prefix)
602602
CMAKE_READELF
603603
CMAKE_SYSROOT
604604
LIBCXX_HAS_MUSL_LIBC
605+
LIBCXX_HAS_PTHREAD_LIB
606+
LIBCXX_HAS_RT_LIB
607+
LIBCXXABI_HAS_PTHREAD_LIB
605608
PYTHON_EXECUTABLE
606609
Python3_EXECUTABLE
607610
Python2_EXECUTABLE

0 commit comments

Comments
 (0)