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