[libFuzzer] Always build libFuzzer
authorKuba Mracek <mracek@apple.com>
Fri, 21 Apr 2017 22:38:24 +0000 (22:38 +0000)
committerKuba Mracek <mracek@apple.com>
Fri, 21 Apr 2017 22:38:24 +0000 (22:38 +0000)
commit71c4043ae9769a71e54b2ea7d995a31db24060a5
treef96031751e47864426d9b94f55cadf3e181782d6
parentfeaa5514db0e622b667583b481479acc06bf9252
[libFuzzer] Always build libFuzzer

There are two reasons why users might want to build libfuzzer:
- To fuzz LLVM itself
- To get the libFuzzer.a archive file, so that they can attach it to their code
This change always builds libfuzzer, and supports the second use case if the specified flag is set.

The point of this patch is to have something that can potentially be shipped with the compiler, and this also ensures that the version of libFuzzer is correct to use with that compiler.

Patch by George Karpenkov.

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

llvm-svn: 301054
llvm/lib/Fuzzer/CMakeLists.txt