[libfuzzer] Use cl driver mode for tests and enable another test on Windows
authorJonathan Metzman <metzman@chromium.org>
Fri, 7 Sep 2018 01:11:31 +0000 (01:11 +0000)
committerJonathan Metzman <metzman@chromium.org>
Fri, 7 Sep 2018 01:11:31 +0000 (01:11 +0000)
commit6167c4ee74fc6109569fd4dd10115387c81f80a5
tree7428141edf84cc42bd44314731fe4376d0e875e0
parentbb313b797dbdda4d2a18ed409bafe9dd559789c3
[libfuzzer] Use cl driver mode for tests and enable another test on Windows

Summary:
When targeting MSVC: compile using clang's cl driver mode (this is needed for
libfuzzer's exit_on_src_pos feature). Don't use -lstdc++ when linking,
it isn't needed and causes a warning.
On Windows: Fix exit_on_src_pos.test by making sure debug info isn't
overwritten during compilation of second binary by using .exe extension.

Reviewers: morehouse

Reviewed By: morehouse

Subscribers: aprantl, JDevlieghere

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

llvm-svn: 341622
compiler-rt/test/fuzzer/exit_on_src_pos.test
compiler-rt/test/fuzzer/lit.cfg