Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: build/download_gold_plugin.py

Issue 1329653004: Revert of Automatically download gold plugin for cfi builds. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/download_gold_plugin.py
diff --git a/build/download_gold_plugin.py b/build/download_gold_plugin.py
index f96d734e5d49b46feba0ef182080d7380ca5d221..7a0c21b8d7077348f9ddbcdad6890e549d1b493c 100755
--- a/build/download_gold_plugin.py
+++ b/build/download_gold_plugin.py
@@ -8,7 +8,6 @@
import json
import os
-import re
import shutil
import subprocess
import sys
@@ -31,24 +30,7 @@
CLANG_BUCKET = 'gs://chromium-browser-clang/Linux_x64'
-GOLD_PLUGIN_PATH = os.path.join(LLVM_BUILD_PATH, 'lib', 'LLVMgold.so')
-
-sys.path.insert(0, os.path.join(CHROME_SRC, 'tools', 'clang', 'scripts'))
-
-import update
-
def main():
- if not re.search(r'cfi_vptr=1', os.environ.get('GYP_DEFINES', '')):
- # Bailout if this is not a cfi build.
- print 'Skipping gold plugin download for non-cfi build.'
- return 0
- if (os.path.exists(GOLD_PLUGIN_PATH) and
- update.ReadStampFile().strip() == update.PACKAGE_VERSION):
- # Bailout if clang is up-to-date. This requires the script to be run before
- # the clang update step! I.e. afterwards clang would always be up-to-date.
- print 'Skipping gold plugin download. File present and clang up to date.'
- return 0
-
targz_name = 'llvmgold-%s.tgz' % CLANG_REVISION
remote_path = '%s/%s' % (CLANG_BUCKET, targz_name)
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698