OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env 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 into third_party/llvm and build it. | 6 # This script will check out llvm and clang into third_party/llvm and build it. |
7 | 7 |
8 # Do NOT CHANGE this if you don't know what you're doing -- see | 8 # Do NOT CHANGE this if you don't know what you're doing -- see |
9 # https://code.google.com/p/chromium/wiki/UpdatingClang | 9 # https://code.google.com/p/chromium/wiki/UpdatingClang |
10 # Reverting problematic clang rolls is safe, though. | 10 # Reverting problematic clang rolls is safe, though. |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 fi | 697 fi |
698 | 698 |
699 popd | 699 popd |
700 | 700 |
701 if [[ -n "${with_android}" ]]; then | 701 if [[ -n "${with_android}" ]]; then |
702 # Make a standalone Android toolchain. | 702 # Make a standalone Android toolchain. |
703 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ | 703 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ |
704 --platform=android-14 \ | 704 --platform=android-14 \ |
705 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ | 705 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ |
706 --system=linux-x86_64 \ | 706 --system=linux-x86_64 \ |
707 --stl=stlport | 707 --stl=stlport \ |
| 708 --toolchain=arm-linux-androideabi-4.9 |
708 | 709 |
709 # Android NDK r9d copies a broken unwind.h into the toolchain, see | 710 # Android NDK r9d copies a broken unwind.h into the toolchain, see |
710 # http://crbug.com/357890 | 711 # http://crbug.com/357890 |
711 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h | 712 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h |
712 | 713 |
713 # Build ASan runtime for Android in a separate build tree. | 714 # Build ASan runtime for Android in a separate build tree. |
714 mkdir -p ${LLVM_BUILD_DIR}/android | 715 mkdir -p ${LLVM_BUILD_DIR}/android |
715 pushd ${LLVM_BUILD_DIR}/android | 716 pushd ${LLVM_BUILD_DIR}/android |
716 rm -fv CMakeCache.txt | 717 rm -fv CMakeCache.txt |
717 MACOSX_DEPLOYMENT_TARGET=${deployment_target} cmake -GNinja \ | 718 MACOSX_DEPLOYMENT_TARGET=${deployment_target} cmake -GNinja \ |
(...skipping 16 matching lines...) Expand all Loading... |
734 | 735 |
735 if [[ -n "$run_tests" ]]; then | 736 if [[ -n "$run_tests" ]]; then |
736 # Run Chrome tool tests. | 737 # Run Chrome tool tests. |
737 ninja -C "${LLVM_BUILD_DIR}" cr-check-all | 738 ninja -C "${LLVM_BUILD_DIR}" cr-check-all |
738 # Run the LLVM and Clang tests. | 739 # Run the LLVM and Clang tests. |
739 ninja -C "${LLVM_BUILD_DIR}" check-all | 740 ninja -C "${LLVM_BUILD_DIR}" check-all |
740 fi | 741 fi |
741 | 742 |
742 # After everything is done, log success for this revision. | 743 # After everything is done, log success for this revision. |
743 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" | 744 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" |
OLD | NEW |