Reland "[libFuzzer] Support using libc++"
authorPetr Hosek <phosek@chromium.org>
Wed, 17 Jan 2018 20:39:14 +0000 (20:39 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 17 Jan 2018 20:39:14 +0000 (20:39 +0000)
commiteac2b47b9fcd7386943a4085c68e8830e22e43f3
treee3090f4cecc96822a4c2eed261ccc0d54ce38de2
parent12e6e709e96924733f9e5ff4ccd7cd036c5bd7cc
Reland "[libFuzzer] Support using libc++"

This is needed in case the users of libFuzzer use libc++ in their
code, which the fuzz target (libFuzzer) will be linked against.
When libc++ source is available, we build a private version of it
and link it against libFuzzer which allows using the same static
library against codebases which use both libc++ and libstdc++.

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

llvm-svn: 322755
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/fuzzer/FuzzerInterface.h
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/lib/fuzzer/FuzzerMain.cpp
compiler-rt/lib/fuzzer/tests/CMakeLists.txt
compiler-rt/test/fuzzer/CMakeLists.txt
compiler-rt/test/fuzzer/lit.cfg
compiler-rt/test/fuzzer/lit.site.cfg.in