Skip to content

Commit

Permalink
Enable libfuzzer on NetBSD/amd64
Browse files Browse the repository at this point in the history
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

llvm-svn: 311365
  • Loading branch information
krytarowski committed Aug 21, 2017
1 parent 74177e1 commit d986545
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/Driver/ToolChains/NetBSD.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d986545

Please sign in to comment.