]> granicus.if.org Git - clang/commit
Add -fsanitize=fuzzer-no-link flag to the driver.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 11 Aug 2017 17:22:58 +0000 (17:22 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 11 Aug 2017 17:22:58 +0000 (17:22 +0000)
commit078b7e8f1ede5ff43491f54ca8f9686c746cafb4
treeaa0471d4089530fea125f2a1e587ba690814b7a1
parent58f82409fac6019a867e3b1bc5f6335e29c51b94
Add -fsanitize=fuzzer-no-link flag to the driver.

The flag will perform instrumentation necessary to the fuzzing,
but will NOT link libLLVMFuzzer.a library.
Necessary when modifying CFLAGS for projects which may produce
executables as well as a fuzzable target.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310733 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Sanitizers.def
lib/Driver/SanitizerArgs.cpp
lib/Driver/ToolChains/Darwin.cpp
lib/Driver/ToolChains/Linux.cpp
test/Driver/fuzzer.c