| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |