]> granicus.if.org Git - clang/commit
[libFuzzer] Port to Windows
authorMatt Morehouse <mascasa@google.com>
Thu, 30 Aug 2018 15:54:44 +0000 (15:54 +0000)
committerMatt Morehouse <mascasa@google.com>
Thu, 30 Aug 2018 15:54:44 +0000 (15:54 +0000)
commit13f92347b3a2eb7585767d49f0e4d8c1d482aed1
tree5c72707c33985857a7db7e3cefa357e3f914ee33
parent982b9705464e6f68def5e27683fccacac2ba1cea
[libFuzzer] Port to Windows

Summary:
Port libFuzzer to windows-msvc.
This patch allows libFuzzer targets to be built and run on Windows, using -fsanitize=fuzzer and/or fsanitize=fuzzer-no-link. It allows these forms of coverage instrumentation to work on Windows as well.
It does not fix all issues, such as those with -fsanitize-coverage=stack-depth, which is not usable on Windows as of this patch.
It also does not fix any libFuzzer integration tests. Nearly all of them fail to compile, fixing them will come in a later patch, so libFuzzer tests are disabled on Windows until them.

Patch By: metzman

Reviewers: morehouse, rnk

Reviewed By: morehouse, rnk

Subscribers: #sanitizers, delcypher, morehouse, kcc, eraman

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341082 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/MSVC.cpp