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..63e88ca34489edb6da47f5c401345af4373c8092 100755 |
--- a/build/mac/copy_asan_runtime_dylib.sh |
+++ b/build/mac/copy_asan_runtime_dylib.sh |
@@ -38,9 +38,7 @@ 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}") |
+ASAN_DYLIB="../../third_party/llvm-build/Release+Asserts/lib/clang/$(python ../../tools/clang/scripts/update.py --print-clang-version)/lib/darwin/${ASAN_DYLIB_NAME}" |
Nico
2016/01/14 17:05:18
you probably want to keep ${BUILT_PRODUCTS_DIR} at
hans
2016/01/14 17:35:56
Gah, I somehow missed that one.
|
DYLIB_BASENAME=$(basename "${ASAN_DYLIB}") |
if [[ "${DYLIB_BASENAME}" != "${ASAN_DYLIB_NAME}" ]]; then |