Only modify abort behavior to avoid debugger dialog on windows for bot builds.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1752973003

Review URL: https://codereview.chromium.org/1752973003
This commit is contained in:
bsalomon 2016-03-02 14:44:15 -08:00 committed by Commit bot
parent e506ee6b7c
commit ad514d00e5
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@
'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)',
],
'conditions' : [
[ 'skia_is_bot', {
'defines': [ 'SK_IS_BOT' ],
}],
[ 'skia_codec_decodes_raw', {
'defines': [
'SK_CODEC_DECODES_RAW',

View File

@ -27,7 +27,7 @@ static inline void* throw_on_failure(size_t size, void* p) {
}
void sk_abort_no_print() {
#ifdef SK_BUILD_FOR_WIN
#if defined(SK_BUILD_FOR_WIN) && defined(SK_IS_BOT)
// do not display a system dialog before aborting the process
_set_abort_behavior(0, _WRITE_ABORT_MSG);
#endif