1# Copyright (c) 2012 Google Inc. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'targets': [ 7 # Optimization disabled so that the exception-causing code is not removed 8 # (divide by zero was getting optimized away in VS2010). 9 { 10 'target_name': 'test_eh_off', 11 'type': 'executable', 12 'msvs_settings': { 13 'VCCLCompilerTool': { 14 'ExceptionHandling': '0', 15 'WarnAsError': 'true', 16 'Optimization': '0', 17 } 18 }, 19 'sources': ['exception-handling-on.cc'], 20 }, 21 { 22 'target_name': 'test_eh_s', 23 'type': 'executable', 24 'msvs_settings': { 25 'VCCLCompilerTool': { 26 'ExceptionHandling': '1', 27 'WarnAsError': 'true', 28 'Optimization': '0', 29 } 30 }, 31 'sources': ['exception-handling-on.cc'], 32 }, 33 { 34 'target_name': 'test_eh_a', 35 'type': 'executable', 36 'msvs_settings': { 37 'VCCLCompilerTool': { 38 'ExceptionHandling': '2', 39 'WarnAsError': 'true', 40 'Optimization': '0', 41 } 42 }, 43 'sources': ['exception-handling-on.cc'], 44 }, 45 ] 46} 47