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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 SO_EXT="so" | 93 SO_EXT="so" |
94 fi | 94 fi |
95 | 95 |
96 # Copy buildlog over. | 96 # Copy buildlog over. |
97 cp buildlog.txt $PDIR/ | 97 cp buildlog.txt $PDIR/ |
98 | 98 |
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++ && cd -) | 101 (cd $PDIR/bin && ln -sf clang clang++ && cd -) |
102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/ | 102 cp "${LLVM_BIN_DIR}/llvm-symbolizer" $PDIR/bin/ |
| 103 if [ "$(uname -s)" = "Darwin" ]; then |
| 104 cp "${LLVM_BIN_DIR}/libc++.1.${SO_EXT}" $PDIR/bin/ |
| 105 (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib && cd -) |
| 106 fi |
103 | 107 |
104 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we | 108 # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we |
105 # care about. | 109 # care about. |
106 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib | 110 cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib |
107 | 111 |
108 BLINKGCPLUGIN_LIBNAME=\ | 112 BLINKGCPLUGIN_LIBNAME=\ |
109 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \ | 113 $(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \ |
110 | cut -d ' ' -f 3) | 114 | cut -d ' ' -f 3) |
111 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib | 115 cp "${LLVM_LIB_DIR}/lib${BLINKGCPLUGIN_LIBNAME}.${SO_EXT}" $PDIR/lib |
112 | 116 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 152 |
149 if [ "$(uname -s)" = "Darwin" ]; then | 153 if [ "$(uname -s)" = "Darwin" ]; then |
150 PLATFORM=Mac | 154 PLATFORM=Mac |
151 else | 155 else |
152 PLATFORM=Linux_x64 | 156 PLATFORM=Linux_x64 |
153 fi | 157 fi |
154 | 158 |
155 echo To upload, run: | 159 echo To upload, run: |
156 echo gsutil cp -a public-read $PDIR.tgz \ | 160 echo gsutil cp -a public-read $PDIR.tgz \ |
157 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz | 161 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz |
OLD | NEW |