blob: d7c98a5fb13e334bf5761937c4d64bbe881370f7 [file] [log] [blame]
[email protected]ec069f72013-08-21 02:44:581#!/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"""
7This file emits the list of reasons why a particular build needs to be clobbered
8(or a list of 'landmines').
9"""
10
[email protected]ec069f72013-08-21 02:44:5811import sys
12
13import landmine_utils
14
15
[email protected]ba844a932014-01-18 16:21:1416builder = landmine_utils.builder
[email protected]ec069f72013-08-21 02:44:5817distributor = landmine_utils.distributor
18gyp_defines = landmine_utils.gyp_defines
19gyp_msvs_version = landmine_utils.gyp_msvs_version
20platform = landmine_utils.platform
21
22
[email protected]9372bec2014-08-14 14:03:3023def print_landmines():
[email protected]ec069f72013-08-21 02:44:5824 """
25 ALL LANDMINES ARE EMITTED FROM HERE.
[email protected]ec069f72013-08-21 02:44:5826 """
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':
amistry1ed40752015-01-15 07:09:5031 print 'Clobber: to handle new way of suppressing findbugs failures.'
ianwenec62d8d32015-02-12 23:36:2832 print 'Clobber to fix gyp not rename package name (crbug.com/457038)'
[email protected]ec069f72013-08-21 02:44:5833 if platform() == 'win' and builder() == 'ninja':
34 print 'Compile on cc_unittests fails due to symbols removed in r185063.'
35 if platform() == 'linux' and builder() == 'ninja':
36 print 'Builders switching from make to ninja will clobber on this.'
37 if platform() == 'mac':
38 print 'Switching from bundle to unbundled dylib (issue 14743002).'
[email protected]03d73c0d2013-12-16 21:48:0839 if platform() in ('win', 'mac'):
40 print ('Improper dependency for create_nmf.py broke in r240802, '
41 'fixed in r240860.')
[email protected]ec069f72013-08-21 02:44:5842 if (platform() == 'win' and builder() == 'ninja' and
43 gyp_msvs_version() == '2012' and
44 gyp_defines().get('target_arch') == 'x64' and
45 gyp_defines().get('dcheck_always_on') == '1'):
46 print "Switched win x64 trybots from VS2010 to VS2012."
[email protected]7f9e6bb2014-01-18 02:03:5747 if (platform() == 'win' and builder() == 'ninja' and
[email protected]6ec705b22014-02-06 02:44:5548 gyp_msvs_version().startswith('2013')):
[email protected]7f9e6bb2014-01-18 02:03:5749 print "Switched win from VS2010 to VS2013."
[email protected]d6073472014-05-21 17:10:4350 print "Update to VS2013 Update 2."
scottmga6675a5f2014-11-15 01:37:4751 print "Update to VS2013 Update 4."
[email protected]ec069f72013-08-21 02:44:5852 print 'Need to clobber everything due to an IDL change in r154579 (blink)'
[email protected]267e9a142014-06-06 11:25:1353 print 'Need to clobber everything due to gen file moves in r175513 (Blink)'
[email protected]013d7932014-02-13 15:53:0854 if (platform() != 'ios'):
55 print 'Clobber to get rid of obselete test plugin after r248358'
[email protected]0d600b22014-06-04 14:26:0356 print 'Clobber to rebuild GN files for V8'
blundell70fb547672015-01-19 17:18:3357 print 'Clobber to get rid of stale generated mojom.h files'
[email protected]9b385892014-07-02 23:11:1158 print 'Need to clobber everything due to build_nexe change in nacl r13424'
[email protected]74e19312014-08-01 22:08:4959 print '[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...'
[email protected]c11618062014-08-05 23:21:5360 print 'blink_resources.grd changed: crbug.com/400860'
Nico Weber9f49a7a2014-09-02 23:42:4261 print 'ninja dependency cycle: crbug.com/408192'
petrcermak7652da6d2014-11-06 02:17:5762 print 'Clobber to fix missing NaCl gyp dependencies (crbug.com/427427).'
dchengf8836042014-11-26 05:04:5563 print 'Another clobber for missing NaCl gyp deps (crbug.com/427427).'
Daniel Chengd1a85ae2014-12-23 22:54:1064 print 'Clobber to fix GN not picking up increased ID range (crbug.com/444902)'
ncbray4453c50a2015-02-18 20:10:5565 print 'Remove NaCl toolchains from the output dir (crbug.com/456902)'
[email protected]ec069f72013-08-21 02:44:5866
67
68def main():
[email protected]9372bec2014-08-14 14:03:3069 print_landmines()
[email protected]ec069f72013-08-21 02:44:5870 return 0
71
72
73if __name__ == '__main__':
74 sys.exit(main())