| # Copyright 2017 The Chromium Authors. All rights reserved. | 
 | # Use of this source code is governed by a BSD-style license that can be | 
 | # found in the LICENSE file. | 
 |  | 
 | import("//build/config/coverage/coverage.gni") | 
 |  | 
 | config("default_coverage") { | 
 |   if (use_clang_coverage) { | 
 |     cflags = [ | 
 |       "-fprofile-instr-generate", | 
 |       "-fcoverage-mapping", | 
 |       "-fno-use-cxa-atexit", | 
 |  | 
 |       # Following experimental flags removes unused header functions from the | 
 |       # coverage mapping data embedded in the test binaries, and the reduction | 
 |       # of binary size enables building Chrome's large unit test targets on | 
 |       # MacOS. Please refer to crbug.com/796290 for more details. | 
 |       "-mllvm", | 
 |       "-limited-coverage-experimental=true", | 
 |     ] | 
 |     ldflags = [ "-fprofile-instr-generate" ] | 
 |   } | 
 | } |