From: Matt Morehouse Date: Wed, 29 Aug 2018 18:40:41 +0000 (+0000) Subject: Revert "[libFuzzer] Port to Windows" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc879fa93a767a8e7d4c6b542c905f3194084a2e;p=clang Revert "[libFuzzer] Port to Windows" This reverts r340949 due to bot breakage again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340954 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/MSVC.cpp b/lib/Driver/ToolChains/MSVC.cpp index 4df43ac8ce..d062c6abc9 100644 --- a/lib/Driver/ToolChains/MSVC.cpp +++ b/lib/Driver/ToolChains/MSVC.cpp @@ -365,17 +365,6 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back(Args.MakeArgString(std::string("-implib:") + ImplibName)); } - if (TC.getSanitizerArgs().needsFuzzer()) { - if (!Args.hasArg(options::OPT_shared)) - CmdArgs.push_back( - Args.MakeArgString(std::string("-wholearchive:") + - TC.getCompilerRTArgString(Args, "fuzzer", false))); - CmdArgs.push_back(Args.MakeArgString("-debug")); - // Prevent the linker from padding sections we use for instrumentation - // arrays. - CmdArgs.push_back(Args.MakeArgString("-incremental:no")); - } - if (TC.getSanitizerArgs().needsAsanRt()) { CmdArgs.push_back(Args.MakeArgString("-debug")); CmdArgs.push_back(Args.MakeArgString("-incremental:no")); @@ -1309,8 +1298,6 @@ MSVCToolChain::ComputeEffectiveClangTriple(const ArgList &Args, SanitizerMask MSVCToolChain::getSupportedSanitizers() const { SanitizerMask Res = ToolChain::getSupportedSanitizers(); Res |= SanitizerKind::Address; - Res |= SanitizerKind::Fuzzer; - Res |= SanitizerKind::FuzzerNoLink; Res &= ~SanitizerKind::CFIMFCall; return Res; }