Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
| 3 # | |
| 4 # Use of this source code is governed by a BSD-style license | |
| 5 # that can be found in the LICENSE file in the root of the source | |
| 6 # tree. An additional intellectual property rights grant can be found | |
| 7 # in the file PATENTS. All contributing project authors may | |
| 8 # be found in the AUTHORS file in the root of the source tree. | |
| 9 | |
| 10 """ | |
| 11 This file emits the list of reasons why a particular build needs to be clobbered | |
| 12 (or a list of 'landmines'). | |
| 13 """ | |
| 14 | |
| 15 import os | |
| 16 import sys | |
| 17 | |
| 18 script_dir = os.path.dirname(os.path.realpath(__file__)) | |
|
Michael Achenbach
2015/10/15 07:38:20
Lines 18-28 allow optimizations, i.e. you can use
kjellander_chromium
2015/10/15 10:51:41
I left them in there for simplicity when adding fu
| |
| 19 checkout_root = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir)) | |
| 20 sys.path.insert(0, os.path.join(checkout_root, 'build')) | |
| 21 import landmine_utils | |
| 22 | |
| 23 | |
| 24 builder = landmine_utils.builder | |
| 25 distributor = landmine_utils.distributor | |
| 26 gyp_defines = landmine_utils.gyp_defines | |
| 27 gyp_msvs_version = landmine_utils.gyp_msvs_version | |
| 28 platform = landmine_utils.platform | |
| 29 | |
| 30 | |
| 31 def print_landmines(): | |
| 32 """ | |
| 33 ALL LANDMINES ARE EMITTED FROM HERE. | |
| 34 """ | |
| 35 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort | |
| 36 # bandaid fix if a CL that got landed has a build dependency bug and all bots | |
| 37 # need to be cleaned up. If you're writing a new CL that causes build | |
| 38 # dependency problems, fix the dependency problems instead of adding a | |
| 39 # landmine. | |
| 40 print 'Clobber to fix GN build (webrtc:5070)' | |
| 41 | |
| 42 | |
| 43 def main(): | |
| 44 print_landmines() | |
| 45 return 0 | |
| 46 | |
| 47 | |
| 48 if __name__ == '__main__': | |
| 49 sys.exit(main()) | |
| OLD | NEW |