xref: /aosp_15_r20/external/libyuv/tools_libyuv/get_landmines.py (revision 4e366538070a3a6c5c163c31b791eab742e1657a)
1*4e366538SXin Li#!/usr/bin/env python3
2*4e366538SXin Li
3*4e366538SXin Li# Copyright 2016 The LibYuv Project Authors. All rights reserved.
4*4e366538SXin Li#
5*4e366538SXin Li# Use of this source code is governed by a BSD-style license
6*4e366538SXin Li# that can be found in the LICENSE file in the root of the source
7*4e366538SXin Li# tree. An additional intellectual property rights grant can be found
8*4e366538SXin Li# in the file PATENTS. All contributing project authors may
9*4e366538SXin Li# be found in the AUTHORS file in the root of the source tree.
10*4e366538SXin Li
11*4e366538SXin Li"""
12*4e366538SXin LiThis file emits the list of reasons why a particular build needs to be clobbered
13*4e366538SXin Li(or a list of 'landmines').
14*4e366538SXin Li"""
15*4e366538SXin Li
16*4e366538SXin Liimport sys
17*4e366538SXin Li
18*4e366538SXin Li
19*4e366538SXin Lidef print_landmines():
20*4e366538SXin Li  """
21*4e366538SXin Li  ALL LANDMINES ARE EMITTED FROM HERE.
22*4e366538SXin Li  """
23*4e366538SXin Li  # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
24*4e366538SXin Li  # bandaid fix if a CL that got landed has a build dependency bug and all bots
25*4e366538SXin Li  # need to be cleaned up. If you're writing a new CL that causes build
26*4e366538SXin Li  # dependency problems, fix the dependency problems instead of adding a
27*4e366538SXin Li  # landmine.
28*4e366538SXin Li  # See the Chromium version in src/build/get_landmines.py for usage examples.
29*4e366538SXin Li  print('Clobber to remove GYP artifacts after switching bots to GN.')
30*4e366538SXin Li  print('Another try to remove GYP artifacts after switching bots to GN.')
31*4e366538SXin Li
32*4e366538SXin Li
33*4e366538SXin Lidef main():
34*4e366538SXin Li  print_landmines()
35*4e366538SXin Li  return 0
36*4e366538SXin Li
37*4e366538SXin Li
38*4e366538SXin Liif __name__ == '__main__':
39*4e366538SXin Li  sys.exit(main())
40