| Index: build/mac/copy_asan_runtime_dylib.sh
|
| diff --git a/build/mac/copy_asan_runtime_dylib.sh b/build/mac/copy_asan_runtime_dylib.sh
|
| index f221c4a66dd83bbccaee2d11b0ee35bfb130b47d..42814903dca0ba6b7feb41e9841fba6a44a01e7e 100755
|
| --- a/build/mac/copy_asan_runtime_dylib.sh
|
| +++ b/build/mac/copy_asan_runtime_dylib.sh
|
| @@ -38,9 +38,9 @@ fi
|
|
|
| # TODO(glider): this doesn't work if we set CC and CXX to override the default
|
| # Clang.
|
| -ASAN_DYLIB=$(find \
|
| - "${BUILT_PRODUCTS_DIR}/../../third_party/llvm-build/Release+Asserts/lib/clang/" \
|
| - -type f -path "*${ASAN_DYLIB_NAME}")
|
| +SRCROOT="${BUILT_PRODUCTS_DIR}/../.."
|
| +CLANGVER=$(python ${SRCROOT}/tools/clang/scripts/update.py --print-clang-version)
|
| +ASAN_DYLIB=${SRCROOT}/third_party/llvm-build/Release+Asserts/lib/clang/${CLANGVER}/lib/darwin/${ASAN_DYLIB_NAME}
|
|
|
| DYLIB_BASENAME=$(basename "${ASAN_DYLIB}")
|
| if [[ "${DYLIB_BASENAME}" != "${ASAN_DYLIB_NAME}" ]]; then
|
|
|