summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/config/profiling/profiling.gni
blob: 9ca3d4aa1bd5d1e361588486ae4a6d9a74572a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright 2020 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/compiler/pgo/pgo.gni")
import("//build/config/coverage/coverage.gni")

declare_args() {
  use_clang_profiling =
      is_a_target_toolchain && (use_clang_coverage || chrome_pgo_phase == 1)
}

assert(!use_clang_profiling || is_clang,
       "Clang Source-based profiling requires clang.")