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

Side by Side Diff: tools/clang/scripts/update.sh

Issue 1475173002: Fix downloading of LLVM Gold plugin for the official Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script will check out llvm and clang into third_party/llvm and build it. 6 # This script will check out llvm and clang into third_party/llvm and build it.
7 7
8 # Do NOT CHANGE this if you don't know what you're doing -- see 8 # Do NOT CHANGE this if you don't know what you're doing -- see
9 # https://code.google.com/p/chromium/wiki/UpdatingClang 9 # https://code.google.com/p/chromium/wiki/UpdatingClang
10 # Reverting problematic clang rolls is safe, though. 10 # Reverting problematic clang rolls is safe, though.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 if [[ -z "$GYP_DEFINES" ]]; then 46 if [[ -z "$GYP_DEFINES" ]]; then
47 GYP_DEFINES= 47 GYP_DEFINES=
48 fi 48 fi
49 if [[ -z "$GYP_GENERATORS" ]]; then 49 if [[ -z "$GYP_GENERATORS" ]]; then
50 GYP_GENERATORS= 50 GYP_GENERATORS=
51 fi 51 fi
52 if [[ -z "$LLVM_DOWNLOAD_GOLD_PLUGIN" ]]; then 52 if [[ -z "$LLVM_DOWNLOAD_GOLD_PLUGIN" ]]; then
53 LLVM_DOWNLOAD_GOLD_PLUGIN= 53 LLVM_DOWNLOAD_GOLD_PLUGIN=
54 fi 54 fi
55 55
56 OS="$(uname -s)"
57
56 if [[ "${OS}" == "Linux" ]] && \ 58 if [[ "${OS}" == "Linux" ]] && \
57 [[ "$GYP_DEFINES" =~ .*buildtype=Official.* ]] && \ 59 [[ "$GYP_DEFINES" =~ .*buildtype=Official.* ]] && \
58 [[ "$GYP_DEFINES" =~ .*branding=Chrome.* ]] ; then 60 [[ "$GYP_DEFINES" =~ .*branding=Chrome.* ]] ; then
59 # LLVM Gold plugin is required to build with this configuration. 61 # LLVM Gold plugin is required to build with this configuration.
60 LLVM_DOWNLOAD_GOLD_PLUGIN=1 62 LLVM_DOWNLOAD_GOLD_PLUGIN=1
61 fi 63 fi
62 64
63 # Die if any command dies, error on undefined variable expansions. 65 # Die if any command dies, error on undefined variable expansions.
64 set -eu 66 set -eu
65 67
66 68
67 if [[ -n ${LLVM_FORCE_HEAD_REVISION:-''} ]]; then 69 if [[ -n ${LLVM_FORCE_HEAD_REVISION:-''} ]]; then
68 # Use a real revision number rather than HEAD to make sure that the stamp file 70 # Use a real revision number rather than HEAD to make sure that the stamp file
69 # logic works. 71 # logic works.
70 CLANG_REVISION=$(svn info "$LLVM_REPO_URL" \ 72 CLANG_REVISION=$(svn info "$LLVM_REPO_URL" \
71 | grep 'Revision:' | awk '{ printf $2; }') 73 | grep 'Revision:' | awk '{ printf $2; }')
72 PACKAGE_VERSION="${CLANG_REVISION}-0" 74 PACKAGE_VERSION="${CLANG_REVISION}-0"
73 fi 75 fi
74 76
75 OS="$(uname -s)"
76
77 # Parse command line options. 77 # Parse command line options.
78 if_needed= 78 if_needed=
79 force_local_build= 79 force_local_build=
80 run_tests= 80 run_tests=
81 bootstrap= 81 bootstrap=
82 with_android=yes 82 with_android=yes
83 chrome_tools="plugins;blink_gc_plugin" 83 chrome_tools="plugins;blink_gc_plugin"
84 gcc_toolchain= 84 gcc_toolchain=
85 85
86 if [[ "${OS}" = "Darwin" ]]; then 86 if [[ "${OS}" = "Darwin" ]]; then
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 # Run Chrome tool tests. 658 # Run Chrome tool tests.
659 ninja -C "${LLVM_BUILD_DIR}" cr-check-all 659 ninja -C "${LLVM_BUILD_DIR}" cr-check-all
660 fi 660 fi
661 if [[ -n "$run_tests" ]]; then 661 if [[ -n "$run_tests" ]]; then
662 # Run the LLVM and Clang tests. 662 # Run the LLVM and Clang tests.
663 ninja -C "${LLVM_BUILD_DIR}" check-all 663 ninja -C "${LLVM_BUILD_DIR}" check-all
664 fi 664 fi
665 665
666 # After everything is done, log success for this revision. 666 # After everything is done, log success for this revision.
667 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}" 667 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}"
OLDNEW
« 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