[PATCH] [compiler-rt] Make the ASan OS X DYLD_INSERT_LIBRARIES detection path-independent

Alexander Potapenko glider at google.com
Tue Nov 18 09:22:05 PST 2014


LGTM

================
Comment at: test/asan/TestCases/Darwin/dyld_insert_libraries_reexec.cc:5
@@ +4,3 @@
+// RUN: mkdir -p %T/dyld_insert_libraries_reexec
+// RUN: cp `%clang_asan %s -fsanitize=address -### 2>&1 | grep "libclang_rt.asan_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.asan_osx_dynamic.dylib\)".*/\1/'` %T/dyld_insert_libraries_reexec/libclang_rt.asan_osx_dynamic.dylib
+// RUN: %clangxx_asan %s -o %T/dyld_insert_libraries_reexec/dyld_insert_libraries_reexec.tmp
----------------
Note: you can wrap long lines using '\'

http://reviews.llvm.org/D6238






More information about the llvm-commits mailing list