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

Unified Diff: tools/clang/scripts/update.sh

Issue 1373043003: CFI: download LLVM Gold plugin, if requested by env var or GYP_DEFINES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.sh
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index 36b6e81eae7f3c4457b394dc5ab81b43c96b6e1d..231d4073a0e1dd4fda23c9afc2a9b0e07a869693 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -53,6 +53,10 @@ if [[ -z "$LLVM_DOWNLOAD_GOLD_PLUGIN" ]]; then
LLVM_DOWNLOAD_GOLD_PLUGIN=
fi
+if [[ "$GYP_DEFINES" =~ .*(cfi_vptr|use_lto|use_lto_o2|official_build)=1.* ]]; then
scottmg 2015/09/28 22:09:41 Is "official_build=1" how CrOS does it? On Windows
hans 2015/09/28 22:11:04 Seems like a lot of different options :-/ Can you
Nico 2015/10/08 02:27:24 Yeah, I think you need buildtype=Official (and may
krasin 2015/10/09 21:33:51 Done in https://codereview.chromium.org/1385403006
+ # LLVM Gold plugin is required to build with this configuration
hans 2015/09/28 22:11:04 ultra nit: period at the end of the comment.
krasin 2015/10/01 21:07:46 Done.
+ LLVM_DOWNLOAD_GOLD_PLUGIN=1
+fi
# Die if any command dies, error on undefined variable expansions.
set -eu
@@ -235,6 +239,11 @@ if [[ -f "${STAMP_FILE}" ]]; then
[[ "${PREVIOUSLY_BUILT_REVISON}" = \
"${PACKAGE_VERSION}" ]]; then
echo "Clang already at ${PACKAGE_VERSION}"
+ if [[ -n "${LLVM_DOWNLOAD_GOLD_PLUGIN}" ]]; then
hans 2015/09/28 22:11:04 The code below (line 285) already downloads the go
krasin 2015/10/09 21:33:51 Good idea. Done in https://codereview.chromium.org
+ # TODO(krasin): make a stamp for gold plugin to avoid
+ # downloading it every time.
+ ${THIS_DIR}/../../../build/download_gold_plugin.py
+ fi
exit 0
fi
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698