| 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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 fi | 926 fi |
| 927 | 927 |
| 928 popd | 928 popd |
| 929 | 929 |
| 930 if [[ -n "${with_android}" ]]; then | 930 if [[ -n "${with_android}" ]]; then |
| 931 # Make a standalone Android toolchain. | 931 # Make a standalone Android toolchain. |
| 932 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ | 932 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ |
| 933 --platform=android-14 \ | 933 --platform=android-14 \ |
| 934 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ | 934 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ |
| 935 --system=linux-x86_64 \ | 935 --system=linux-x86_64 \ |
| 936 --stl=stlport \ | 936 --stl=libcxx \ |
| 937 --toolchain=arm-linux-androideabi-4.9 | 937 --toolchain=arm-linux-androideabi-4.9 |
| 938 | 938 |
| 939 # Android NDK r9d copies a broken unwind.h into the toolchain, see | 939 # Android NDK r9d copies a broken unwind.h into the toolchain, see |
| 940 # http://crbug.com/357890 | 940 # http://crbug.com/357890 |
| 941 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h | 941 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h |
| 942 | 942 |
| 943 # Build ASan runtime for Android in a separate build tree. | 943 # Build ASan runtime for Android in a separate build tree. |
| 944 mkdir -p ${LLVM_BUILD_DIR}/android | 944 mkdir -p ${LLVM_BUILD_DIR}/android |
| 945 pushd ${LLVM_BUILD_DIR}/android | 945 pushd ${LLVM_BUILD_DIR}/android |
| 946 rm -fv CMakeCache.txt | 946 rm -fv CMakeCache.txt |
| (...skipping 17 matching lines...) Expand all Loading... |
| 964 | 964 |
| 965 if [[ -n "$run_tests" ]]; then | 965 if [[ -n "$run_tests" ]]; then |
| 966 # Run Chrome tool tests. | 966 # Run Chrome tool tests. |
| 967 ninja -C "${LLVM_BUILD_DIR}" cr-check-all | 967 ninja -C "${LLVM_BUILD_DIR}" cr-check-all |
| 968 # Run the LLVM and Clang tests. | 968 # Run the LLVM and Clang tests. |
| 969 ninja -C "${LLVM_BUILD_DIR}" check-all | 969 ninja -C "${LLVM_BUILD_DIR}" check-all |
| 970 fi | 970 fi |
| 971 | 971 |
| 972 # After everything is done, log success for this revision. | 972 # After everything is done, log success for this revision. |
| 973 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" | 973 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" |
| OLD | NEW |