Chromium Code Reviews| Index: tools/clang/scripts/update.py |
| diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py |
| index b1a59b7405401d56026d81e81ba052b906200935..0c06de77b4db89d4f77e5919037148800925fbfe 100755 |
| --- a/tools/clang/scripts/update.py |
| +++ b/tools/clang/scripts/update.py |
| @@ -722,6 +722,11 @@ def main(): |
| if args.if_needed: |
| is_clang_required = False |
| + # We don't need to download the toolchain on upload bots during runhooks. |
| + if 'LLVM_DOWNLOAD_NOT_NEEDED' in os.environ: |
| + print ('Skipping downloading Clang toolchain binaries as ' |
| + 'LLVM_DOWNLOAD_NOT_NEEDED is found in the environment') |
|
hans
2016/03/04 19:52:28
can we call it LLVM_FORCE_LOCAL_BUILD instead and
|
| + return 0 |
| # clang is always used on Mac and Linux. |
| if sys.platform == 'darwin' or sys.platform.startswith('linux'): |
| is_clang_required = True |