• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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/chromeos/ui_mode.gni")
6import("//build/config/compiler/compiler.gni")
7import("//build/config/dcheck_always_on.gni")
8
9declare_args() {
10  # Use LogErrorNotReached() for NOTREACHED_IN_MIGRATION().
11  enable_log_error_not_reached =
12      is_chromeos_ash && !(is_debug || dcheck_always_on)
13
14  # Stack traces will not include function names. Instead they will contain
15  # file and offset information that can be used with
16  # tools/valgrind/asan/asan_symbolize.py. By piping stderr through this script,
17  # and also enabling symbol_level = 2, you can get much more detailed stack
18  # traces with file names and line numbers, even in non-ASAN builds.
19  print_unsymbolized_stack_traces = is_asan || is_lsan || is_msan || is_tsan
20
21  # Enables the DWARF line number reader on Linux. This only has an effect if
22  # print_unsymbolized_stack_traces is false.
23  enable_stack_trace_line_numbers = symbol_level > 0
24}
25