xref: /build/config/coverage/coverage.gni (revision 5f9996aa)
15f9996aaSopenharmony_ci# Copyright 2017 The Chromium Authors. All rights reserved.
25f9996aaSopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
35f9996aaSopenharmony_ci# found in the LICENSE file.
45f9996aaSopenharmony_ci
55f9996aaSopenharmony_ciimport("//build/toolchain/toolchain.gni")
65f9996aaSopenharmony_ci
75f9996aaSopenharmony_cideclare_args() {
85f9996aaSopenharmony_ci  # Enable Clang's Source-based Code Coverage.
95f9996aaSopenharmony_ci  use_clang_coverage = false
105f9996aaSopenharmony_ci}
115f9996aaSopenharmony_ci
125f9996aaSopenharmony_ciassert(!use_clang_coverage || is_clang,
135f9996aaSopenharmony_ci       "Clang Source-based Code Coverage requires clang.")
14