[PATCH] D44878: libFuzzer OpenBSD support

David CARLIER via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 25 06:05:36 PDT 2018


devnexen created this revision.
devnexen added reviewers: brad, thakis.
Herald added a subscriber: cfe-commits.

Repository:
  rC Clang

https://reviews.llvm.org/D44878

Files:
  lib/Driver/ToolChains/OpenBSD.cpp


Index: lib/Driver/ToolChains/OpenBSD.cpp
===================================================================
--- lib/Driver/ToolChains/OpenBSD.cpp
+++ lib/Driver/ToolChains/OpenBSD.cpp
@@ -236,8 +236,11 @@
   // For future use, only UBsan at the moment
   SanitizerMask Res = ToolChain::getSupportedSanitizers();
 
-  if (IsX86 || IsX86_64)
+  if (IsX86 || IsX86_64) {
     Res |= SanitizerKind::Vptr;
+    Res |= SanitizerKind::Fuzzer;
+    Res |= SanitizerKind::FuzzerNoLink;
+  }
 
   return Res;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44878.139736.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180325/a2383fc6/attachment.bin>


More information about the cfe-commits mailing list