[Fuzzer] Parametrize add_custom_libcxx
authorPetr Hosek <phosek@chromium.org>
Sat, 20 Jan 2018 09:03:16 +0000 (09:03 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 20 Jan 2018 09:03:16 +0000 (09:03 +0000)
commit94e67be18729f462976bacbc6dcd559c8bb99e41
treeb2caa019561494d6f5ea0931dda971a96a923bf1
parenta6c6d65b724e0696550f217306ea1d8e5fc5f4f8
[Fuzzer] Parametrize add_custom_libcxx

add_custom_libcxx uses the just built compiler and installs the
built libc++, e.g. for testing, neither of which is desirable in
case of Fuzzer where the libc++ should be built using the host
compiler and it's only linked into the libFuzzer and should never
be installed. This change introduces additional arguments to
add_custom_libcxx to allow parametrizing its behavior.

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

llvm-svn: 323032
compiler-rt/cmake/Modules/AddCompilerRT.cmake
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/fuzzer/tests/CMakeLists.txt
compiler-rt/lib/msan/tests/CMakeLists.txt
compiler-rt/lib/tsan/CMakeLists.txt