[PATCH] D15247: Check multilib dir for asan_device_setup.

Dan Albert via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 14:51:58 PST 2015


danalbert created this revision.
danalbert added a reviewer: eugenis.
danalbert added a subscriber: llvm-commits.
danalbert set the repository for this revision to rL LLVM.

Repository:
  rL LLVM

http://reviews.llvm.org/D15247

Files:
  lib/asan/scripts/asan_device_setup

Index: lib/asan/scripts/asan_device_setup
===================================================================
--- lib/asan/scripts/asan_device_setup
+++ lib/asan/scripts/asan_device_setup
@@ -222,8 +222,13 @@
     ASAN_RT_PATH="$HERE"
 elif [[ $(basename "$HERE") == "bin" ]]; then
     # We could be in the toolchain's base directory.
-    # Consider ../lib, ../lib/asan, ../lib/linux and ../lib/clang/$VERSION/lib/linux.
-    P=$(ls "$HERE"/../lib/"$ASAN_RT" "$HERE"/../lib/asan/"$ASAN_RT" "$HERE"/../lib/linux/"$ASAN_RT" "$HERE"/../lib/clang/*/lib/linux/"$ASAN_RT" 2>/dev/null | sort | tail -1)
+    # Consider ../lib, ../lib/asan, ../lib/linux,
+    # ../lib/clang/$VERSION/lib/linux, and ../lib64/clang/$VERSION/lib/linux.
+    P=$(ls "$HERE"/../lib/"$ASAN_RT" \
+           "$HERE"/../lib/asan/"$ASAN_RT" \
+           "$HERE"/../lib/linux/"$ASAN_RT" \
+           "$HERE"/../lib/clang/*/lib/linux/"$ASAN_RT" \
+           "$HERE"/../lib64/clang/*/lib/linux/"$ASAN_RT" 2>/dev/null | sort | tail -1)
     if [[ -n "$P" ]]; then
         ASAN_RT_PATH="$(dirname "$P")"
     fi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15247.41945.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151204/78971cc9/attachment.bin>


More information about the llvm-commits mailing list