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

Side by Side Diff: tools/gcmole/bootstrap.sh

Issue 445983002: Update gcmole to a more recent clang/llvm. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changes up to 3.5 Created 6 years, 4 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 | « tools/gcmole/Makefile ('k') | tools/gcmole/gcmole.cc » ('j') | 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 2
3 # Copyright 2013 the V8 project authors. All rights reserved. 3 # Copyright 2013 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following 11 # copyright notice, this list of conditions and the following
12 # disclaimer in the documentation and/or other materials provided 12 # disclaimer in the documentation and/or other materials provided
13 # with the distribution. 13 # with the distribution.
14 # * Neither the name of Google Inc. nor the names of its 14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived 15 # contributors may be used to endorse or promote products derived
16 # from this software without specific prior written permission. 16 # from this software without specific prior written permission.
17 # 17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 # This script will build libgcmole.so. 30 # This script will build libgcmole.so. Building a recent clang needs a
31 # recent GCC, so if you explicitly want to use GCC 4.8, use:
32 #
33 # CC=gcc-4.8 CPP=cpp-4.8 CXX=g++-4.8 CXXFLAGS=-static-libstdc++ CXXCPP=cpp-4. 8 ./bootstrap.sh
31 34
32 CLANG_RELEASE=2.9 35 CLANG_RELEASE=3.5
33 36
34 THIS_DIR="$(dirname "${0}")" 37 THIS_DIR="$(dirname "${0}")"
35 LLVM_DIR="${THIS_DIR}/../../third_party/llvm" 38 LLVM_DIR="${THIS_DIR}/../../third_party/llvm"
36 CLANG_DIR="${LLVM_DIR}/tools/clang" 39 CLANG_DIR="${LLVM_DIR}/tools/clang"
37 40
38 LLVM_REPO_URL=${LLVM_URL:-https://llvm.org/svn/llvm-project} 41 LLVM_REPO_URL=${LLVM_URL:-https://llvm.org/svn/llvm-project}
39 42
40 # Die if any command dies. 43 # Die if any command dies.
41 set -e 44 set -e
42 45
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 --without-llvmgcc \ 106 --without-llvmgcc \
104 --without-llvmgxx 107 --without-llvmgxx
105 fi 108 fi
106 109
107 MACOSX_DEPLOYMENT_TARGET=10.5 make -j"${NUM_JOBS}" 110 MACOSX_DEPLOYMENT_TARGET=10.5 make -j"${NUM_JOBS}"
108 STRIP_FLAGS= 111 STRIP_FLAGS=
109 if [ "${OS}" = "Darwin" ]; then 112 if [ "${OS}" = "Darwin" ]; then
110 # See http://crbug.com/256342 113 # See http://crbug.com/256342
111 STRIP_FLAGS=-x 114 STRIP_FLAGS=-x
112 fi 115 fi
113 strip ${STRIP_FLAGS} Release/bin/clang 116 strip ${STRIP_FLAGS} Release+Asserts/bin/clang
114 cd - 117 cd -
115 118
116 # Build libgcmole.so 119 # Build libgcmole.so
117 make -C "${THIS_DIR}" clean 120 make -C "${THIS_DIR}" clean
118 make -C "${THIS_DIR}" LLVM_SRC_ROOT="${LLVM_DIR}" libgcmole.so 121 make -C "${THIS_DIR}" LLVM_SRC_ROOT="${LLVM_DIR}" libgcmole.so
119 122
120 set +x 123 set +x
121 124
122 echo 125 echo
123 echo You can now run gcmole using this command: 126 echo You can now run gcmole using this command:
124 echo 127 echo
125 echo CLANG_BIN=\"third_party/llvm/Release/bin\" lua tools/gcmole/gcmole.lua 128 echo CLANG_BIN=\"third_party/llvm/Release+Asserts/bin\" lua tools/gcmole/gcmole. lua
126 echo 129 echo
OLDNEW
« no previous file with comments | « tools/gcmole/Makefile ('k') | tools/gcmole/gcmole.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698