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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 if [ "$(uname -s)" = "Darwin" ]; then | 117 if [ "$(uname -s)" = "Darwin" ]; then |
118 mkdir $PDIR/include | 118 mkdir $PDIR/include |
119 cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include | 119 cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include |
120 fi | 120 fi |
121 | 121 |
122 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we | 122 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we |
123 # care about. | 123 # care about. |
124 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib | 124 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib |
125 cp "${LLVM_LIB_DIR}/libBlinkGCPlugin.${SO_EXT}" $PDIR/lib | 125 cp "${LLVM_LIB_DIR}/libBlinkGCPlugin.${SO_EXT}" $PDIR/lib |
126 | 126 |
127 # Copy gold plugin on Linux. | |
128 if [ "$(uname -s)" = "Linux" ]; then | |
129 cp "${LLVM_LIB_DIR}/LLVMgold.${SO_EXT}" $PDIR/lib | |
Nico
2015/03/03 05:45:07
How large is this?
pcc1
2015/03/03 05:55:37
32859400 bytes here, or 29884848 stripped.
| |
130 fi | |
131 | |
127 if [[ -n "${gcc_toolchain}" ]]; then | 132 if [[ -n "${gcc_toolchain}" ]]; then |
128 # Copy the stdlibc++.so.6 we linked Clang against so it can run. | 133 # Copy the stdlibc++.so.6 we linked Clang against so it can run. |
129 cp "${LLVM_LIB_DIR}/libstdc++.so.6" $PDIR/lib | 134 cp "${LLVM_LIB_DIR}/libstdc++.so.6" $PDIR/lib |
130 fi | 135 fi |
131 | 136 |
132 # Copy built-in headers (lib/clang/3.x.y/include). | 137 # Copy built-in headers (lib/clang/3.x.y/include). |
133 # compiler-rt builds all kinds of libraries, but we want only some. | 138 # compiler-rt builds all kinds of libraries, but we want only some. |
134 if [ "$(uname -s)" = "Darwin" ]; then | 139 if [ "$(uname -s)" = "Darwin" ]; then |
135 # Keep only the OSX (ASan and profile) and iossim (ASan) runtime libraries: | 140 # Keep only the OSX (ASan and profile) and iossim (ASan) runtime libraries: |
136 # Release+Asserts/lib/clang/*/lib/darwin/libclang_rt.{asan,profile}_* | 141 # Release+Asserts/lib/clang/*/lib/darwin/libclang_rt.{asan,profile}_* |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 PLATFORM=Mac | 178 PLATFORM=Mac |
174 else | 179 else |
175 PLATFORM=Linux_x64 | 180 PLATFORM=Linux_x64 |
176 fi | 181 fi |
177 | 182 |
178 echo To upload, run: | 183 echo To upload, run: |
179 echo gsutil cp -a public-read $PDIR.tgz \ | 184 echo gsutil cp -a public-read $PDIR.tgz \ |
180 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz | 185 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz |
181 | 186 |
182 # FIXME: Warn if the file already exists on the server. | 187 # FIXME: Warn if the file already exists on the server. |
OLD | NEW |