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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « tools/clang/scripts/run_tool.py ('k') | tools/clang/translation_unit/CMakeLists.txt » ('j') | 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.
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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}"
OLDNEW
« no previous file with comments | « tools/clang/scripts/run_tool.py ('k') | tools/clang/translation_unit/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698