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