1# Copyright 2020 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/compiler/pgo/pgo.gni") 6import("//build/config/coverage/coverage.gni") 7 8declare_args() { 9 use_clang_profiling = 10 is_a_target_toolchain && (use_clang_coverage || chrome_pgo_phase == 1) 11} 12 13assert(!use_clang_profiling || is_clang, 14 "Clang Source-based profiling requires clang.") 15