| 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. |
| 11 CLANG_REVISION=233105 | 11 CLANG_REVISION=236765 |
| 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=2 | 14 CLANG_SUB_REVISION=1 |
| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 -TEST_F(LibclangReparseTest, ReparseWithModule) { | 395 -TEST_F(LibclangReparseTest, ReparseWithModule) { |
| 396 +TEST_F(LibclangReparseTest, DISABLED_ReparseWithModule) { | 396 +TEST_F(LibclangReparseTest, DISABLED_ReparseWithModule) { |
| 397 const char *HeaderTop = "#ifndef H\n#define H\nstruct Foo { int bar;"; | 397 const char *HeaderTop = "#ifndef H\n#define H\nstruct Foo { int bar;"; |
| 398 const char *HeaderBottom = "\n};\n#endif\n"; | 398 const char *HeaderBottom = "\n};\n#endif\n"; |
| 399 const char *MFile = "#include \"HeaderFile.h\"\nint main() {" | 399 const char *MFile = "#include \"HeaderFile.h\"\nint main() {" |
| 400 EOF | 400 EOF |
| 401 patch -p0 | 401 patch -p0 |
| 402 popd | 402 popd |
| 403 | 403 |
| 404 # Cherry-pick r234010 [sancov] Shrink pc array on Android back to 2**24." | |
| 405 pushd "${COMPILER_RT_DIR}" | |
| 406 cat << 'EOF' | | |
| 407 diff --git a/lib/sanitizer_common/sanitizer_coverage_libcdep.cc b/lib/sanitizer_
common/sanitizer_coverage_libcdep.cc | |
| 408 index 4b976fc..cfd9e7e 100644 | |
| 409 --- a/lib/sanitizer_common/sanitizer_coverage_libcdep.cc | |
| 410 +++ b/lib/sanitizer_common/sanitizer_coverage_libcdep.cc | |
| 411 @@ -109,7 +109,8 @@ class CoverageData { | |
| 412 | |
| 413 // Maximal size pc array may ever grow. | |
| 414 // We MmapNoReserve this space to ensure that the array is contiguous. | |
| 415 - static const uptr kPcArrayMaxSize = FIRST_32_SECOND_64(1 << 26, 1 << 27); | |
| 416 + static const uptr kPcArrayMaxSize = | |
| 417 + FIRST_32_SECOND_64(1 << (SANITIZER_ANDROID ? 24 : 26), 1 << 27); | |
| 418 // The amount file mapping for the pc array is grown by. | |
| 419 static const uptr kPcArrayMmapSize = 64 * 1024; | |
| 420 | |
| 421 EOF | |
| 422 patch -p1 | |
| 423 popd | |
| 424 | |
| 425 # This Go bindings test doesn't work after the bootstrap build on Linux. (PR21
552) | 404 # This Go bindings test doesn't work after the bootstrap build on Linux. (PR21
552) |
| 426 pushd "${LLVM_DIR}" | 405 pushd "${LLVM_DIR}" |
| 427 cat << 'EOF' | | 406 cat << 'EOF' | |
| 428 Index: test/Bindings/Go/go.test | 407 Index: test/Bindings/Go/go.test |
| 429 =================================================================== | 408 =================================================================== |
| 430 --- test/Bindings/Go/go.test (revision 223109) | 409 --- test/Bindings/Go/go.test (revision 223109) |
| 431 +++ test/Bindings/Go/go.test (working copy) | 410 +++ test/Bindings/Go/go.test (working copy) |
| 432 @@ -1,3 +1,3 @@ | 411 @@ -1,3 +1,3 @@ |
| 433 -; RUN: llvm-go test llvm.org/llvm/bindings/go/llvm | 412 -; RUN: llvm-go test llvm.org/llvm/bindings/go/llvm |
| 434 +; RUN: true | 413 +; RUN: true |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 | 679 |
| 701 if [[ -n "$run_tests" ]]; then | 680 if [[ -n "$run_tests" ]]; then |
| 702 # Run Chrome tool tests. | 681 # Run Chrome tool tests. |
| 703 ninja -C "${LLVM_BUILD_DIR}" cr-check-all | 682 ninja -C "${LLVM_BUILD_DIR}" cr-check-all |
| 704 # Run the LLVM and Clang tests. | 683 # Run the LLVM and Clang tests. |
| 705 ninja -C "${LLVM_BUILD_DIR}" check-all | 684 ninja -C "${LLVM_BUILD_DIR}" check-all |
| 706 fi | 685 fi |
| 707 | 686 |
| 708 # After everything is done, log success for this revision. | 687 # After everything is done, log success for this revision. |
| 709 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}" | 688 echo "${PACKAGE_VERSION}" > "${STAMP_FILE}" |
| OLD | NEW |