| Index: tools/clang/scripts/update.py
|
| diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
|
| index 4b2d8c3b969f47d0ccba317218a9cd6c8ba21a56..3058b50a963ee8fe3c37a2ec8e30d5135c9892cb 100755
|
| --- a/tools/clang/scripts/update.py
|
| +++ b/tools/clang/scripts/update.py
|
| @@ -799,6 +799,9 @@ def main():
|
| 'picks /opt/foo/bin/gcc')
|
| parser.add_argument('--lto-gold-plugin', action='store_true',
|
| help='build LLVM Gold plugin with LTO')
|
| + parser.add_argument('--llvm-force-head-revision', action='store_true',
|
| + help=('use the revision in the repo when printing '
|
| + 'the revision'))
|
| parser.add_argument('--print-revision', action='store_true',
|
| help='print current clang revision and exit.')
|
| parser.add_argument('--print-clang-version', action='store_true',
|
| @@ -842,7 +845,7 @@ def main():
|
|
|
| global CLANG_REVISION, PACKAGE_VERSION
|
| if args.print_revision:
|
| - if use_head_revision:
|
| + if use_head_revision or args.llvm_force_head_revision:
|
| print GetSvnRevision(LLVM_DIR)
|
| else:
|
| print PACKAGE_VERSION
|
|
|