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

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

Issue 835633003: Enable libc++ on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to positional param revert Created 5 years, 10 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
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.
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 fi 897 fi
898 898
899 popd 899 popd
900 900
901 if [[ -n "${with_android}" ]]; then 901 if [[ -n "${with_android}" ]]; then
902 # Make a standalone Android toolchain. 902 # Make a standalone Android toolchain.
903 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ 903 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \
904 --platform=android-14 \ 904 --platform=android-14 \
905 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ 905 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \
906 --system=linux-x86_64 \ 906 --system=linux-x86_64 \
907 --stl=stlport \ 907 --stl=libcxx \
908 --toolchain=arm-linux-androideabi-4.9 908 --toolchain=arm-linux-androideabi-4.9
909 909
910 # Android NDK r9d copies a broken unwind.h into the toolchain, see 910 # Android NDK r9d copies a broken unwind.h into the toolchain, see
911 # http://crbug.com/357890 911 # http://crbug.com/357890
912 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h 912 rm -v "${LLVM_BUILD_DIR}"/android-toolchain/include/c++/*/unwind.h
913 913
914 # Build ASan runtime for Android in a separate build tree. 914 # Build ASan runtime for Android in a separate build tree.
915 mkdir -p ${LLVM_BUILD_DIR}/android 915 mkdir -p ${LLVM_BUILD_DIR}/android
916 pushd ${LLVM_BUILD_DIR}/android 916 pushd ${LLVM_BUILD_DIR}/android
917 rm -fv CMakeCache.txt 917 rm -fv CMakeCache.txt
(...skipping 17 matching lines...) Expand all
935 935
936 if [[ -n "$run_tests" ]]; then 936 if [[ -n "$run_tests" ]]; then
937 # Run Chrome tool tests. 937 # Run Chrome tool tests.
938 ninja -C "${LLVM_BUILD_DIR}" cr-check-all 938 ninja -C "${LLVM_BUILD_DIR}" cr-check-all
939 # Run the LLVM and Clang tests. 939 # Run the LLVM and Clang tests.
940 ninja -C "${LLVM_BUILD_DIR}" check-all 940 ninja -C "${LLVM_BUILD_DIR}" check-all
941 fi 941 fi
942 942
943 # After everything is done, log success for this revision. 943 # After everything is done, log success for this revision.
944 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" 944 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}"
OLDNEW
« tools/android/run_pie/run_pie.gyp ('K') | « tools/android/run_pie/run_pie.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698