Skip to content

Commit

Permalink
Pass through more LIBCXX_* variables to libfuzzer's custom lib++
Browse files Browse the repository at this point in the history
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
  • Loading branch information
colincross authored and pirama-arumuga-nainar committed Mar 4, 2022
1 parent dd33f9c commit bcc65fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler-rt/cmake/Modules/AddCompilerRT.cmake
Expand Up @@ -602,6 +602,9 @@ macro(add_custom_libcxx name prefix)
CMAKE_READELF
CMAKE_SYSROOT
LIBCXX_HAS_MUSL_LIBC
LIBCXX_HAS_PTHREAD_LIB
LIBCXX_HAS_RT_LIB
LIBCXXABI_HAS_PTHREAD_LIB
PYTHON_EXECUTABLE
Python3_EXECUTABLE
Python2_EXECUTABLE
Expand Down

0 comments on commit bcc65fb

Please sign in to comment.