gecko-dev/tools/fuzzing/libfuzzer-flags.mozbuild
Christian Holler 570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02:00

14 lines
589 B
Python

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
libfuzzer_flags = []
if CONFIG['HAVE_LIBFUZZER_FLAG_FUZZER_NO_LINK']:
libfuzzer_flags += ['-fsanitize=fuzzer-no-link']
else:
# Older Clang versions (<= 5) only support an older set of libFuzzer flags
libfuzzer_flags += ['-fsanitize-coverage=trace-pc-guard,trace-cmp']