| OLD | NEW | 
|    1 #!/usr/bin/env python |    1 #!/usr/bin/env python | 
|    2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |    2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    3 # Use of this source code is governed by a BSD-style license that can be |    3 # Use of this source code is governed by a BSD-style license that can be | 
|    4 # found in the LICENSE file. |    4 # found in the LICENSE file. | 
|    5  |    5  | 
|    6 """ |    6 """ | 
|    7 This file holds a list of reasons why a particular build needs to be clobbered |    7 This file holds a list of reasons why a particular build needs to be clobbered | 
|    8 (or a list of 'landmines'). |    8 (or a list of 'landmines'). | 
|    9  |    9  | 
|   10 This script runs every build as a hook. If it detects that the build should |   10 This script runs every build as a hook. If it detects that the build should | 
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  133   ALL LANDMINES ARE DEFINED HERE. |  133   ALL LANDMINES ARE DEFINED HERE. | 
|  134   target is 'Release' or 'Debug' |  134   target is 'Release' or 'Debug' | 
|  135   """ |  135   """ | 
|  136   landmines = [] |  136   landmines = [] | 
|  137   add = lambda item: landmines.append(item + '\n') |  137   add = lambda item: landmines.append(item + '\n') | 
|  138  |  138  | 
|  139   if (distributor() == 'goma' and platform() == 'win32' and |  139   if (distributor() == 'goma' and platform() == 'win32' and | 
|  140       builder() == 'ninja'): |  140       builder() == 'ninja'): | 
|  141     add('Need to clobber winja goma due to backend cwd cache fix.') |  141     add('Need to clobber winja goma due to backend cwd cache fix.') | 
|  142   if platform() == 'android': |  142   if platform() == 'android': | 
|  143     add('Clobber: java files renamed in crrev.com/12880022') |  143     add('Clobber: Resources removed in r195014 require clobber.') | 
|  144   if platform() == 'win' and builder() == 'ninja': |  144   if platform() == 'win' and builder() == 'ninja': | 
|  145     add('Compile on cc_unittests fails due to symbols removed in r185063.') |  145     add('Compile on cc_unittests fails due to symbols removed in r185063.') | 
|  146   if platform() == 'linux' and builder() == 'ninja': |  146   if platform() == 'linux' and builder() == 'ninja': | 
|  147     add('Builders switching from make to ninja will clobber on this.') |  147     add('Builders switching from make to ninja will clobber on this.') | 
|  148  |  148  | 
|  149   return landmines |  149   return landmines | 
|  150  |  150  | 
|  151  |  151  | 
|  152 def get_target_build_dir(build_tool, target, is_iphone=False): |  152 def get_target_build_dir(build_tool, target, is_iphone=False): | 
|  153   """ |  153   """ | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  224   gyp_helper.apply_chromium_gyp_env() |  224   gyp_helper.apply_chromium_gyp_env() | 
|  225  |  225  | 
|  226   for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'): |  226   for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'): | 
|  227     set_up_landmines(target) |  227     set_up_landmines(target) | 
|  228  |  228  | 
|  229   return 0 |  229   return 0 | 
|  230  |  230  | 
|  231  |  231  | 
|  232 if __name__ == '__main__': |  232 if __name__ == '__main__': | 
|  233   sys.exit(main()) |  233   sys.exit(main()) | 
| OLD | NEW |