Add libFuzzer shared object build output
authorMatt Morehouse <mascasa@google.com>
Wed, 5 Aug 2020 15:15:57 +0000 (08:15 -0700)
committerMatt Morehouse <mascasa@google.com>
Wed, 5 Aug 2020 16:03:22 +0000 (09:03 -0700)
commit98d91aecb26a51225242332e73ed454c0f6cac5e
treedfe8f37da6fd9c0052f199ebf63e0af08182d0d5
parent47cfffe893f345285ac9fb9c24b268dfcdc6aa38
Add libFuzzer shared object build output

This change adds a CMake rule to produce shared object versions of
libFuzzer (no-main). Like the static library versions, these shared
libraries have a copy of libc++ statically linked in. For i386 we don't
link with libc++ since i386 does not support mixing position-
independent and non-position-independent code in the same library.

Patch By: IanPudney

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D84947
compiler-rt/lib/fuzzer/CMakeLists.txt
llvm/docs/LibFuzzer.rst