1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2016 The Chromium Authors 2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker 5*8975f5c5SAndroid Build Coastguard Workerimport("//build/config/sanitizers/sanitizers.gni") 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Workerdeclare_args() { 8*8975f5c5SAndroid Build Coastguard Worker # If true, builds as a console app (rather than a windowed app), which allows 9*8975f5c5SAndroid Build Coastguard Worker # logging to be printed to the user. This will cause a terminal window to pop 10*8975f5c5SAndroid Build Coastguard Worker # up when the executable is not run from the command line, so should only be 11*8975f5c5SAndroid Build Coastguard Worker # used for development. Only has an effect on Windows builds. 12*8975f5c5SAndroid Build Coastguard Worker win_console_app = false 13*8975f5c5SAndroid Build Coastguard Worker} 14*8975f5c5SAndroid Build Coastguard Worker 15*8975f5c5SAndroid Build Coastguard Workerif (is_win && is_asan) { 16*8975f5c5SAndroid Build Coastguard Worker # AddressSanitizer build should be a console app since it writes to stderr. 17*8975f5c5SAndroid Build Coastguard Worker win_console_app = true 18*8975f5c5SAndroid Build Coastguard Worker} 19