[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 1 | #!/usr/bin/env python |
2 | # Copyright 2013 The Chromium Authors. All rights reserved. | ||||
3 | # Use of this source code is governed by a BSD-style license that can be | ||||
4 | # found in the LICENSE file. | ||||
5 | |||||
6 | """ | ||||
7 | This file emits the list of reasons why a particular build needs to be clobbered | ||||
8 | (or a list of 'landmines'). | ||||
9 | """ | ||||
10 | |||||
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 11 | import sys |
12 | |||||
13 | import landmine_utils | ||||
14 | |||||
15 | |||||
[email protected] | ba844a93 | 2014-01-18 16:21:14 | [diff] [blame] | 16 | builder = landmine_utils.builder |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 17 | distributor = landmine_utils.distributor |
18 | gyp_defines = landmine_utils.gyp_defines | ||||
19 | gyp_msvs_version = landmine_utils.gyp_msvs_version | ||||
20 | platform = landmine_utils.platform | ||||
21 | |||||
22 | |||||
[email protected] | 9372bec | 2014-08-14 14:03:30 | [diff] [blame] | 23 | def print_landmines(): |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 24 | """ |
25 | ALL LANDMINES ARE EMITTED FROM HERE. | ||||
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 26 | """ |
27 | if (distributor() == 'goma' and platform() == 'win32' and | ||||
28 | builder() == 'ninja'): | ||||
29 | print 'Need to clobber winja goma due to backend cwd cache fix.' | ||||
30 | if platform() == 'android': | ||||
qsr | 063e1e3a | 2014-08-27 15:18:43 | [diff] [blame] | 31 | print 'Clobber: To delete generated mojo class files.' |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 32 | if platform() == 'win' and builder() == 'ninja': |
33 | print 'Compile on cc_unittests fails due to symbols removed in r185063.' | ||||
34 | if platform() == 'linux' and builder() == 'ninja': | ||||
35 | print 'Builders switching from make to ninja will clobber on this.' | ||||
36 | if platform() == 'mac': | ||||
37 | print 'Switching from bundle to unbundled dylib (issue 14743002).' | ||||
[email protected] | 03d73c0d | 2013-12-16 21:48:08 | [diff] [blame] | 38 | if platform() in ('win', 'mac'): |
39 | print ('Improper dependency for create_nmf.py broke in r240802, ' | ||||
40 | 'fixed in r240860.') | ||||
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 41 | if (platform() == 'win' and builder() == 'ninja' and |
42 | gyp_msvs_version() == '2012' and | ||||
43 | gyp_defines().get('target_arch') == 'x64' and | ||||
44 | gyp_defines().get('dcheck_always_on') == '1'): | ||||
45 | print "Switched win x64 trybots from VS2010 to VS2012." | ||||
[email protected] | 7f9e6bb | 2014-01-18 02:03:57 | [diff] [blame] | 46 | if (platform() == 'win' and builder() == 'ninja' and |
[email protected] | 6ec705b2 | 2014-02-06 02:44:55 | [diff] [blame] | 47 | gyp_msvs_version().startswith('2013')): |
[email protected] | 7f9e6bb | 2014-01-18 02:03:57 | [diff] [blame] | 48 | print "Switched win from VS2010 to VS2013." |
[email protected] | d607347 | 2014-05-21 17:10:43 | [diff] [blame] | 49 | print "Update to VS2013 Update 2." |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 50 | print 'Need to clobber everything due to an IDL change in r154579 (blink)' |
[email protected] | 267e9a14 | 2014-06-06 11:25:13 | [diff] [blame] | 51 | print 'Need to clobber everything due to gen file moves in r175513 (Blink)' |
[email protected] | 013d793 | 2014-02-13 15:53:08 | [diff] [blame] | 52 | if (platform() != 'ios'): |
53 | print 'Clobber to get rid of obselete test plugin after r248358' | ||||
[email protected] | 0d600b2 | 2014-06-04 14:26:03 | [diff] [blame] | 54 | print 'Clobber to rebuild GN files for V8' |
[email protected] | 9b38589 | 2014-07-02 23:11:11 | [diff] [blame] | 55 | print 'Need to clobber everything due to build_nexe change in nacl r13424' |
[email protected] | 74e1931 | 2014-08-01 22:08:49 | [diff] [blame] | 56 | print '[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...' |
[email protected] | c1161806 | 2014-08-05 23:21:53 | [diff] [blame] | 57 | print 'blink_resources.grd changed: crbug.com/400860' |
Nico Weber | 9f49a7a | 2014-09-02 23:42:42 | [diff] [blame^] | 58 | print 'ninja dependency cycle: crbug.com/408192' |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 59 | |
60 | |||||
61 | def main(): | ||||
[email protected] | 9372bec | 2014-08-14 14:03:30 | [diff] [blame] | 62 | print_landmines() |
[email protected] | ec069f7 | 2013-08-21 02:44:58 | [diff] [blame] | 63 | return 0 |
64 | |||||
65 | |||||
66 | if __name__ == '__main__': | ||||
67 | sys.exit(main()) |