[compiler-rt] bcc65fb - Pass through more LIBCXX_* variables to libfuzzer's custom lib++

Pirama Arumuga Nainar via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 4 09:31:47 PST 2022


Author: Colin Cross
Date: 2022-03-04T09:31:37-08:00
New Revision: bcc65fb491ca6e83e1ea300f4462a2f56d0b5937

URL: https://github.com/llvm/llvm-project/commit/bcc65fb491ca6e83e1ea300f4462a2f56d0b5937
DIFF: https://github.com/llvm/llvm-project/commit/bcc65fb491ca6e83e1ea300f4462a2f56d0b5937.diff

LOG: 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

Added: 
    

Modified: 
    compiler-rt/cmake/Modules/AddCompilerRT.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index ebabaf1867518..0d6dd8f500ced 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -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


        


More information about the llvm-commits mailing list