1# Copyright 2023 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/compiler.gni") 6 7declare_args() { 8 # Whether to compile support for Allocation Stack Trace Recorder. 9 # 10 # The recorder is initially intended as a support tool for Arm's 11 # Memory Tagging Extensions. A history of the most recent allocations and 12 # frees is included in the crashpad report and gives developers information 13 # where the memory which was invalidly accessed was allocated or freed. 14 # 15 # Although it should work on other platforms as well, for the above reasons, 16 # we currently enable it only for Android when compiling for Arm64. 17 build_allocation_stack_trace_recorder = false 18} 19 20assert(!(build_allocation_stack_trace_recorder && is_fuchsia), 21 "Stack trace recording is not supported on Fuchsia due to missing" + 22 " Crashpad!") 23 24assert(!(build_allocation_stack_trace_recorder && is_linux), 25 "WARNING: Stack trace recording is not supported on Linux due to" + 26 " performance issues computing stack trace!") 27