blob: b2f20dd4ddf0166bca464e5d094a3ebf1ccd5b71 [file] [log] [blame]
Kostya Serebryanydb4d6452015-02-06 19:52:07 +00001//===- FuzzerSanitizerOptions.cpp - default flags for sanitizers ----------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9// Set default options for sanitizers while running the fuzzer.
10// Options reside in a separate file, so if we don't want to set the default
11// options we simply do not link this file in.
12// ASAN options:
13// * don't dump the coverage to disk.
14// * enable coverage by default.
Kostya Serebryany177582c2015-05-05 01:42:55 +000015// * enable handle_abort.
Kostya Serebryanydb4d6452015-02-06 19:52:07 +000016//===----------------------------------------------------------------------===//
17extern "C" const char *__asan_default_options() {
Kostya Serebryany177582c2015-05-05 01:42:55 +000018 return "coverage_pcs=0:coverage=1:handle_abort=1";
Kostya Serebryanydb4d6452015-02-06 19:52:07 +000019}