sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [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 | |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [diff] [blame] | 11 | import sys |
| 12 | |
| 13 | import landmine_utils |
| 14 | |
| 15 | |
scottmg@chromium.org | ad0c02e | 2014-01-19 01:21:14 +0900 | [diff] [blame] | 16 | builder = landmine_utils.builder |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [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 | |
scottmg@chromium.org | 2f8c83b | 2014-08-14 23:03:30 +0900 | [diff] [blame] | 23 | def print_landmines(): |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [diff] [blame] | 24 | """ |
| 25 | ALL LANDMINES ARE EMITTED FROM HERE. |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [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': |
cjhopman@chromium.org | e9786a6 | 2014-08-13 00:10:38 +0900 | [diff] [blame] | 31 | print 'Clobber: To delete generated class files (we just use jars now).' |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [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).' |
iannucci@chromium.org | 78646dd | 2013-12-17 06:48:08 +0900 | [diff] [blame] | 38 | if platform() in ('win', 'mac'): |
| 39 | print ('Improper dependency for create_nmf.py broke in r240802, ' |
| 40 | 'fixed in r240860.') |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [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." |
scottmg@chromium.org | c7a887d | 2014-01-18 11:03:57 +0900 | [diff] [blame] | 46 | if (platform() == 'win' and builder() == 'ninja' and |
scottmg@chromium.org | 99db73e | 2014-02-06 11:44:55 +0900 | [diff] [blame] | 47 | gyp_msvs_version().startswith('2013')): |
scottmg@chromium.org | c7a887d | 2014-01-18 11:03:57 +0900 | [diff] [blame] | 48 | print "Switched win from VS2010 to VS2013." |
scottmg@chromium.org | a98347c | 2014-05-22 02:10:43 +0900 | [diff] [blame] | 49 | print "Update to VS2013 Update 2." |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [diff] [blame] | 50 | print 'Need to clobber everything due to an IDL change in r154579 (blink)' |
nbarth@chromium.org | 07c0b32 | 2014-06-06 20:25:13 +0900 | [diff] [blame] | 51 | print 'Need to clobber everything due to gen file moves in r175513 (Blink)' |
jochen@chromium.org | 2278994 | 2014-02-14 00:53:08 +0900 | [diff] [blame] | 52 | if (platform() != 'ios'): |
| 53 | print 'Clobber to get rid of obselete test plugin after r248358' |
machenbach@chromium.org | 46d90b4 | 2014-06-04 23:26:03 +0900 | [diff] [blame] | 54 | print 'Clobber to rebuild GN files for V8' |
bradnelson@google.com | 52f2eac | 2014-07-03 08:11:11 +0900 | [diff] [blame] | 55 | print 'Need to clobber everything due to build_nexe change in nacl r13424' |
thakis@chromium.org | b71ec46 | 2014-08-02 07:08:49 +0900 | [diff] [blame] | 56 | print '[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...' |
eseidel@chromium.org | cfa0286 | 2014-08-06 08:21:53 +0900 | [diff] [blame] | 57 | print 'blink_resources.grd changed: crbug.com/400860' |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [diff] [blame] | 58 | |
| 59 | |
| 60 | def main(): |
scottmg@chromium.org | 2f8c83b | 2014-08-14 23:03:30 +0900 | [diff] [blame] | 61 | print_landmines() |
sivachandra@chromium.org | 54da968 | 2013-08-21 11:44:58 +0900 | [diff] [blame] | 62 | return 0 |
| 63 | |
| 64 | |
| 65 | if __name__ == '__main__': |
| 66 | sys.exit(main()) |