From 135eac6e75e9820b5d078689e3ba95e8b78c90c0 Mon Sep 17 00:00:00 2001 From: mgiuca Date: Sun, 15 Nov 2015 23:26:49 -0800 Subject: Added win_console_app compile-time flag. On Windows, this builds with /SUBSYSTEM:CONSOLE instead of /SUBSYSTEM:WINDOWS, which enables console logging (without having to use Sawbuck or log to a file). The downside of this is that it pops open a command line window, so it should only be used for development. Works in GYP or GN. ASan builds automatically get this flag (which is consistent with existing behaviour). BUG=550745 Review URL: https://codereview.chromium.org/1429133002 Cr-Commit-Position: refs/heads/master@{#359807} --- build/common.gypi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build') diff --git a/build/common.gypi b/build/common.gypi index 9f2f91a..df6ba20 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1987,6 +1987,13 @@ ['asan==1 or syzyasan==1', { 'win_use_allocator_shim%': 0, }], + # The AddressSanitizer build should be a console program as it prints + # out stuff on stderr. + ['asan==1', { + 'win_console_app%': 1, + }, { + 'win_console_app%': 0, + }], ['syzyasan==1', { 'kasko%': 1, }], -- cgit v1.1