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

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

Issue 296983008: Roll Clang 206824:209387 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/clang/blink_gc_plugin/Makefile ('k') | tools/clang/scripts/update.sh » ('j') | 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) 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 # Copy clang into pdir, symlink clang++ to it. 99 # Copy clang into pdir, symlink clang++ to it.
100 cp "${LLVM_BIN_DIR}/clang" $PDIR/bin/ 100 cp "${LLVM_BIN_DIR}/clang" $PDIR/bin/
101 (cd $PDIR/bin && ln -sf clang clang++) 101 (cd $PDIR/bin && ln -sf clang clang++)
102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/ 102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/
103 if [ "$(uname -s)" = "Darwin" ]; then 103 if [ "$(uname -s)" = "Darwin" ]; then
104 cp "${LLVM_BIN_DIR}/libc++.1.${SO_EXT}" $PDIR/bin/ 104 cp "${LLVM_BIN_DIR}/libc++.1.${SO_EXT}" $PDIR/bin/
105 (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib) 105 (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib)
106 fi 106 fi
107 107
108 # Copy libc++ headers. 108 # Copy libc++ headers.
109 mkdir $PDIR/include 109 if [ "$(uname -s)" = "Darwin" ]; then
110 cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include 110 mkdir $PDIR/include
111 cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include
112 fi
111 113
112 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we 114 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we
113 # care about. 115 # care about.
114 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib 116 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib
115 117
116 BLINKGCPLUGIN_LIBNAME=\ 118 BLINKGCPLUGIN_LIBNAME=\
117 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \ 119 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \
118 | cut -d ' ' -f 3) 120 | cut -d ' ' -f 3)
119 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib 121 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib
120 122
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 158
157 if [ "$(uname -s)" = "Darwin" ]; then 159 if [ "$(uname -s)" = "Darwin" ]; then
158 PLATFORM=Mac 160 PLATFORM=Mac
159 else 161 else
160 PLATFORM=Linux_x64 162 PLATFORM=Linux_x64
161 fi 163 fi
162 164
163 echo To upload, run: 165 echo To upload, run:
164 echo gsutil cp -a public-read $PDIR.tgz \ 166 echo gsutil cp -a public-read $PDIR.tgz \
165 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz 167 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/Makefile ('k') | tools/clang/scripts/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698