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

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

Issue 7777001: Try to track down mac ld issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 627 Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | 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 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 THIS_DIR="$(dirname "${0}")" 8 THIS_DIR="$(dirname "${0}")"
9 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" 9 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm"
10 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build" 10 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 echo Getting clang r"${CLANG_REVISION}" in "${CLANG_DIR}" 73 echo Getting clang r"${CLANG_REVISION}" in "${CLANG_DIR}"
74 svn co --force "${LLVM_REPO_URL}/cfe/trunk@${CLANG_REVISION}" "${CLANG_DIR}" 74 svn co --force "${LLVM_REPO_URL}/cfe/trunk@${CLANG_REVISION}" "${CLANG_DIR}"
75 fi 75 fi
76 76
77 # Echo all commands. 77 # Echo all commands.
78 set -x 78 set -x
79 79
80 # Build clang (in a separate directory). 80 # Build clang (in a separate directory).
81 # The clang bots have this path hardcoded in built/scripts/slave/compile.py, 81 # The clang bots have this path hardcoded in built/scripts/slave/compile.py,
82 # so if you change it you also need to change these links. 82 # so if you change it you also need to change these links.
83 rm -rf "${LLVM_BUILD_DIR}" # clobber (XXX temporary don't check in)
83 mkdir -p "${LLVM_BUILD_DIR}" 84 mkdir -p "${LLVM_BUILD_DIR}"
84 cd "${LLVM_BUILD_DIR}" 85 cd "${LLVM_BUILD_DIR}"
85 if [ ! -f ./config.status ]; then 86 if [ ! -f ./config.status ]; then
86 ../llvm/configure \ 87 ../llvm/configure \
87 --enable-optimized \ 88 --enable-optimized \
88 --disable-threads \ 89 --disable-threads \
89 --disable-pthreads \ 90 --disable-pthreads \
90 --without-llvmgcc \ 91 --without-llvmgcc \
91 --without-llvmgxx 92 --without-llvmgxx
92 fi 93 fi
(...skipping 15 matching lines...) Expand all
108 PLUGIN_BUILD_DIR="${LLVM_BUILD_DIR}/tools/clang/tools/chrome-plugin" 109 PLUGIN_BUILD_DIR="${LLVM_BUILD_DIR}/tools/clang/tools/chrome-plugin"
109 rm -rf "${PLUGIN_DST_DIR}" 110 rm -rf "${PLUGIN_DST_DIR}"
110 cp -R "${PLUGIN_SRC_DIR}" "${PLUGIN_DST_DIR}" 111 cp -R "${PLUGIN_SRC_DIR}" "${PLUGIN_DST_DIR}"
111 rm -rf "${PLUGIN_BUILD_DIR}" 112 rm -rf "${PLUGIN_BUILD_DIR}"
112 mkdir -p "${PLUGIN_BUILD_DIR}" 113 mkdir -p "${PLUGIN_BUILD_DIR}"
113 cp "${PLUGIN_SRC_DIR}/Makefile" "${PLUGIN_BUILD_DIR}" 114 cp "${PLUGIN_SRC_DIR}/Makefile" "${PLUGIN_BUILD_DIR}"
114 make -j"${NUM_JOBS}" -C "${PLUGIN_BUILD_DIR}" 115 make -j"${NUM_JOBS}" -C "${PLUGIN_BUILD_DIR}"
115 116
116 # After everything is done, log success for this revision. 117 # After everything is done, log success for this revision.
117 echo "${CLANG_REVISION}" > "${STAMP_FILE}" 118 echo "${CLANG_REVISION}" > "${STAMP_FILE}"
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698