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

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

Issue 440813003: mac: Actually include libc++ headers in clang package. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | 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) 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 # , but not dfsan. 151 # , but not dfsan.
152 find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' \ 152 find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' \
153 ! -name '*[atm]san*' ! -name '*ubsan*' ! -name '*libclang_rt.san*' \ 153 ! -name '*[atm]san*' ! -name '*ubsan*' ! -name '*libclang_rt.san*' \
154 ! -name '*profile*' | xargs rm 154 ! -name '*profile*' | xargs rm
155 # Strip the debug info from the runtime libraries. 155 # Strip the debug info from the runtime libraries.
156 find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' | xargs strip -g 156 find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' | xargs strip -g
157 fi 157 fi
158 158
159 cp -R "${LLVM_LIB_DIR}/clang" $PDIR/lib 159 cp -R "${LLVM_LIB_DIR}/clang" $PDIR/lib
160 160
161 tar zcf $PDIR.tgz -C $PDIR bin lib buildlog.txt 161 if [ "$(uname -s)" = "Darwin" ]; then
162 tar zcf $PDIR.tgz -C $PDIR bin include lib buildlog.txt
163 else
164 tar zcf $PDIR.tgz -C $PDIR bin lib buildlog.txt
165 fi
162 166
163 if [ "$(uname -s)" = "Darwin" ]; then 167 if [ "$(uname -s)" = "Darwin" ]; then
164 PLATFORM=Mac 168 PLATFORM=Mac
165 else 169 else
166 PLATFORM=Linux_x64 170 PLATFORM=Linux_x64
167 fi 171 fi
168 172
169 echo To upload, run: 173 echo To upload, run:
170 echo gsutil cp -a public-read $PDIR.tgz \ 174 echo gsutil cp -a public-read $PDIR.tgz \
171 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz 175 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698