| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 STRIP_FLAGS= | 408 STRIP_FLAGS= |
| 409 if [ "${OS}" = "Darwin" ]; then | 409 if [ "${OS}" = "Darwin" ]; then |
| 410 # See http://crbug.com/256342 | 410 # See http://crbug.com/256342 |
| 411 STRIP_FLAGS=-x | 411 STRIP_FLAGS=-x |
| 412 | 412 |
| 413 cp libcxxbuild/libc++.1.dylib Release+Asserts/bin | 413 cp libcxxbuild/libc++.1.dylib Release+Asserts/bin |
| 414 fi | 414 fi |
| 415 strip ${STRIP_FLAGS} Release+Asserts/bin/clang | 415 strip ${STRIP_FLAGS} Release+Asserts/bin/clang |
| 416 popd | 416 popd |
| 417 | 417 |
| 418 # Copy libc++ headers, to make --stdlib=libc++ work for iOS. |
| 419 make -C "${LIBCXX_DIR}" \ |
| 420 installheaders HEADER_DIR="${PWD}/${LLVM_BUILD_DIR}/Release+Asserts/include" |
| 421 |
| 418 if [[ -n "${with_android}" ]]; then | 422 if [[ -n "${with_android}" ]]; then |
| 419 # Make a standalone Android toolchain. | 423 # Make a standalone Android toolchain. |
| 420 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ | 424 ${ANDROID_NDK_DIR}/build/tools/make-standalone-toolchain.sh \ |
| 421 --platform=android-14 \ | 425 --platform=android-14 \ |
| 422 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ | 426 --install-dir="${LLVM_BUILD_DIR}/android-toolchain" \ |
| 423 --system=linux-x86_64 \ | 427 --system=linux-x86_64 \ |
| 424 --stl=stlport | 428 --stl=stlport |
| 425 | 429 |
| 426 # Android NDK r9d copies a broken unwind.h into the toolchain, see | 430 # Android NDK r9d copies a broken unwind.h into the toolchain, see |
| 427 # http://crbug.com/357890 | 431 # http://crbug.com/357890 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 "${TOOL_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 464 "${TOOL_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
| 461 fi | 465 fi |
| 462 done | 466 done |
| 463 pushd "${LLVM_BUILD_DIR}" | 467 pushd "${LLVM_BUILD_DIR}" |
| 464 ${MAKE} check-all | 468 ${MAKE} check-all |
| 465 popd | 469 popd |
| 466 fi | 470 fi |
| 467 | 471 |
| 468 # After everything is done, log success for this revision. | 472 # After everything is done, log success for this revision. |
| 469 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" | 473 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" |
| OLD | NEW |