OLD | NEW |
1 #!/bin/bash | 1 #!/bin/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, and then package the results up | 6 # This script will check out llvm and clang, and then package the results up |
7 # to a tgz file. | 7 # to a tgz file. |
8 | 8 |
9 gcc_toolchain= | 9 gcc_toolchain= |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 svn stat "${LLVM_DIR}/projects/libcxx" 2>&1 | tee -a buildlog.txt | 66 svn stat "${LLVM_DIR}/projects/libcxx" 2>&1 | tee -a buildlog.txt |
67 svn diff "${LLVM_DIR}/projects/libcxx" 2>&1 | tee -a buildlog.txt | 67 svn diff "${LLVM_DIR}/projects/libcxx" 2>&1 | tee -a buildlog.txt |
68 echo "Diff in llvm/projects/libcxxabi:" | tee -a buildlog.txt | 68 echo "Diff in llvm/projects/libcxxabi:" | tee -a buildlog.txt |
69 svn stat "${LLVM_DIR}/projects/libcxxabi" 2>&1 | tee -a buildlog.txt | 69 svn stat "${LLVM_DIR}/projects/libcxxabi" 2>&1 | tee -a buildlog.txt |
70 svn diff "${LLVM_DIR}/projects/libcxxabi" 2>&1 | tee -a buildlog.txt | 70 svn diff "${LLVM_DIR}/projects/libcxxabi" 2>&1 | tee -a buildlog.txt |
71 | 71 |
72 | 72 |
73 echo "Starting build" | tee -a buildlog.txt | 73 echo "Starting build" | tee -a buildlog.txt |
74 | 74 |
75 set -exu | 75 set -exu |
| 76 set -o pipefail |
76 | 77 |
77 # Do a clobber build. | 78 # Do a clobber build. |
78 rm -rf "${LLVM_BOOTSTRAP_DIR}" | 79 rm -rf "${LLVM_BOOTSTRAP_DIR}" |
79 rm -rf "${LLVM_BOOTSTRAP_INSTALL_DIR}" | 80 rm -rf "${LLVM_BOOTSTRAP_INSTALL_DIR}" |
80 rm -rf "${LLVM_BUILD_DIR}" | 81 rm -rf "${LLVM_BUILD_DIR}" |
81 extra_flags= | 82 extra_flags= |
82 if [[ -n "${gcc_toolchain}" ]]; then | 83 if [[ -n "${gcc_toolchain}" ]]; then |
83 extra_flags="--gcc-toolchain ${gcc_toolchain}" | 84 extra_flags="--gcc-toolchain ${gcc_toolchain}" |
84 fi | 85 fi |
85 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \ | 86 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 175 |
175 if [ "$(uname -s)" = "Darwin" ]; then | 176 if [ "$(uname -s)" = "Darwin" ]; then |
176 PLATFORM=Mac | 177 PLATFORM=Mac |
177 else | 178 else |
178 PLATFORM=Linux_x64 | 179 PLATFORM=Linux_x64 |
179 fi | 180 fi |
180 | 181 |
181 echo To upload, run: | 182 echo To upload, run: |
182 echo gsutil cp -a public-read $PDIR.tgz \ | 183 echo gsutil cp -a public-read $PDIR.tgz \ |
183 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz | 184 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz |
OLD | NEW |