| OLD | NEW |
| 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 CLANG_REVISION=124227 | 8 CLANG_REVISION=124477 |
| 9 | 9 |
| 10 THIS_DIR=$(dirname $0) | 10 THIS_DIR=$(dirname $0) |
| 11 LLVM_DIR=$THIS_DIR/../../../third_party/llvm | 11 LLVM_DIR=$THIS_DIR/../../../third_party/llvm |
| 12 CLANG_DIR=$LLVM_DIR/tools/clang | 12 CLANG_DIR=$LLVM_DIR/tools/clang |
| 13 | 13 |
| 14 # Die if any command dies. | 14 # Die if any command dies. |
| 15 set -e | 15 set -e |
| 16 | 16 |
| 17 # Echo all commands. | 17 # Echo all commands. |
| 18 set -x | 18 set -x |
| 19 | 19 |
| 20 # Check out. | 20 # Check out. |
| 21 svn co --force http://llvm.org/svn/llvm-project/llvm/trunk@$CLANG_REVISION $LLVM
_DIR | 21 svn co --force http://llvm.org/svn/llvm-project/llvm/trunk@$CLANG_REVISION $LLVM
_DIR |
| 22 svn co --force http://llvm.org/svn/llvm-project/cfe/trunk@$CLANG_REVISION $CLANG
_DIR | 22 svn co --force http://llvm.org/svn/llvm-project/cfe/trunk@$CLANG_REVISION $CLANG
_DIR |
| 23 | 23 |
| 24 # Build (in a separate directory). | 24 # Build (in a separate directory). |
| 25 # The clang bots have /usr/local/clang be a symbolic link into this hardcoded | 25 # The clang bots have /usr/local/clang be a symbolic link into this hardcoded |
| 26 # directory, so if you change it you also need to change these links. | 26 # directory, so if you change it you also need to change these links. |
| 27 mkdir -p $LLVM_DIR/../llvm-build | 27 mkdir -p $LLVM_DIR/../llvm-build |
| 28 cd $LLVM_DIR/../llvm-build | 28 cd $LLVM_DIR/../llvm-build |
| 29 ../llvm/configure --enable-optimized | 29 ../llvm/configure --enable-optimized |
| 30 # TODO(thakis): Make this the number of cores (use |sysctl hw.ncpu| on OS X and | 30 # TODO(thakis): Make this the number of cores (use |sysctl hw.ncpu| on OS X and |
| 31 # some grepping of /proc/cpuinfo on linux). | 31 # some grepping of /proc/cpuinfo on linux). |
| 32 make -j3 | 32 make -j3 |
| 33 cd - | 33 cd - |
| OLD | NEW |