Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: tools/clang/scripts/update.sh

Issue 1149863010: Build libclang_rt.asan-arm-android with stlport and API level 19. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
11 CLANG_REVISION=238013 11 CLANG_REVISION=238013
12 12
13 # This is incremented when pushing a new build of Clang at the same revision. 13 # This is incremented when pushing a new build of Clang at the same revision.
14 CLANG_SUB_REVISION=1 14 CLANG_SUB_REVISION=3
15 15
16 PACKAGE_VERSION="${CLANG_REVISION}-${CLANG_SUB_REVISION}" 16 PACKAGE_VERSION="${CLANG_REVISION}-${CLANG_SUB_REVISION}"
17 17
18 THIS_DIR="$(dirname "${0}")" 18 THIS_DIR="$(dirname "${0}")"
19 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" 19 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm"
20 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build/Release+Asserts" 20 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build/Release+Asserts"
21 COMPILER_RT_BUILD_DIR="${LLVM_DIR}/../llvm-build/compiler-rt" 21 COMPILER_RT_BUILD_DIR="${LLVM_DIR}/../llvm-build/compiler-rt"
22 LLVM_BOOTSTRAP_DIR="${LLVM_DIR}/../llvm-bootstrap" 22 LLVM_BOOTSTRAP_DIR="${LLVM_DIR}/../llvm-bootstrap"
23 LLVM_BOOTSTRAP_INSTALL_DIR="${LLVM_DIR}/../llvm-bootstrap-install" 23 LLVM_BOOTSTRAP_INSTALL_DIR="${LLVM_DIR}/../llvm-bootstrap-install"
24 CLANG_DIR="${LLVM_DIR}/tools/clang" 24 CLANG_DIR="${LLVM_DIR}/tools/clang"
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 tar -c lib/darwin | tar -C ${ABS_LLVM_CLANG_LIB_DIR} -xv 671 tar -c lib/darwin | tar -C ${ABS_LLVM_CLANG_LIB_DIR} -xv
672 else 672 else
673 tar -c lib/linux | tar -C ${ABS_LLVM_CLANG_LIB_DIR} -xv 673 tar -c lib/linux | tar -C ${ABS_LLVM_CLANG_LIB_DIR} -xv
674 fi 674 fi
675 675
676 popd 676 popd
677 677
678 if [[ -n "${with_android}" ]]; then 678 if [[ -n "${with_android}" ]]; then
679 # Make a standalone Android toolchain. 679 # Make a standalone Android toolchain.
680 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ 680 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \
681 --platform=android-14 \ 681 --platform=android-19 \
682 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ 682 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \
683 --system=linux-x86_64 \ 683 --system=linux-x86_64 \
684 --stl=libcxx \ 684 --stl=stlport \
685 --toolchain=arm-linux-androideabi-4.9 685 --toolchain=arm-linux-androideabi-4.9
686 686
687 # Android NDK r9d copies a broken unwind.h into the toolchain, see 687 # Android NDK r9d copies a broken unwind.h into the toolchain, see
688 # http://crbug.com/357890 688 # http://crbug.com/357890
689 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h 689 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h
690 690
691 # Build ASan runtime for Android in a separate build tree. 691 # Build ASan runtime for Android in a separate build tree.
692 mkdir -p ${LLVM_BUILD_DIR}/android 692 mkdir -p ${LLVM_BUILD_DIR}/android
693 pushd ${LLVM_BUILD_DIR}/android 693 pushd ${LLVM_BUILD_DIR}/android
694 rm -fv CMakeCache.txt 694 rm -fv CMakeCache.txt
(...skipping 19 matching lines...) Expand all
714 # Run Chrome tool tests. 714 # Run Chrome tool tests.
715 ninja -C "${LLVM_BUILD_DIR}" cr-check-all 715 ninja -C "${LLVM_BUILD_DIR}" cr-check-all
716 fi 716 fi
717 if [[ -n "$run_tests" ]]; then 717 if [[ -n "$run_tests" ]]; then
718 # Run the LLVM and Clang tests. 718 # Run the LLVM and Clang tests.
719 ninja -C "${LLVM_BUILD_DIR}" check-all 719 ninja -C "${LLVM_BUILD_DIR}" check-all
720 fi 720 fi
721 721
722 # After everything is done, log success for this revision. 722 # After everything is done, log success for this revision.
723 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}" 723 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698