summaryrefslogtreecommitdiff
path: root/chromium/chrome/android/static_initializers.gni
blob: 29bd242bde2c3deb263378a4d9462bc199bfb0a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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/features.gni")
import("//build/config/sanitizers/sanitizers.gni")

# Be very specific here so that our static initializer count does not vary
# between bots. This target will cause release bots to fail if the count
# changes in either direction, and so should be updated when static initializers
# are removed.
if (current_toolchain == default_toolchain &&
    (!is_debug && !using_sanitizer && proprietary_codecs)) {
  # Define expectations only for target_cpu covered by trybots.
  # Currently static_initializers come from:
  # * iostream.cpp
  # * token.cc
  if (target_cpu == "arm" || target_cpu == "arm64") {
    expected_static_initializer_count = 2
  }
}