| Index: tools/clang/scripts/update.py
|
| diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
|
| index ecd9a42eb0cd4e0b3db686331ba5bf322294d402..2dfef6f4efdcb9e77d2683934559bd7eaf964948 100755
|
| --- a/tools/clang/scripts/update.py
|
| +++ b/tools/clang/scripts/update.py
|
| @@ -397,8 +397,9 @@
|
| def UpdateClang(args):
|
| print 'Updating Clang to %s...' % PACKAGE_VERSION
|
|
|
| - # Required for LTO, which is used when is_official_build = true.
|
| - need_gold_plugin = sys.platform.startswith('linux')
|
| + need_gold_plugin = 'LLVM_DOWNLOAD_GOLD_PLUGIN' in os.environ or (
|
| + sys.platform.startswith('linux') and
|
| + 'buildtype=Official' in os.environ.get('GYP_DEFINES', ''))
|
|
|
| if ReadStampFile() == PACKAGE_VERSION and not args.force_local_build:
|
| print 'Clang is already up to date.'
|
|
|