]> granicus.if.org Git - clang/commitdiff
Enable libfuzzer on NetBSD/amd64
authorKamil Rytarowski <n54@gmx.com>
Mon, 21 Aug 2017 19:12:14 +0000 (19:12 +0000)
committerKamil Rytarowski <n54@gmx.com>
Mon, 21 Aug 2017 19:12:14 +0000 (19:12 +0000)
Summary:
Enable SanitizerKind::Fuzzer and SanitizerKind::FuzzerNoLink on x86_64.

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, kcc, vitalybuka, george.karpenkov

Reviewed By: vitalybuka

Subscribers: cfe-commits, #sanitizers

Tags: #sanitizers

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311365 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/NetBSD.cpp

index f16bc87ad6eeb2e52ca93003450e815b3be153b4..c2c9007af60e5abb1715c98545ef38f6e6923de5 100644 (file)
@@ -428,6 +428,8 @@ SanitizerMask NetBSD::getSupportedSanitizers() const {
     Res |= SanitizerKind::Vptr;
   }
   if (IsX86_64) {
+    Res |= SanitizerKind::Fuzzer;
+    Res |= SanitizerKind::FuzzerNoLink;
     Res |= SanitizerKind::Thread;
   }
   return Res;