summaryrefslogtreecommitdiffstats
path: root/tools/android/asan/asanwrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/android/asan/asanwrapper.sh')
-rwxr-xr-xtools/android/asan/asanwrapper.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/android/asan/asanwrapper.sh b/tools/android/asan/asanwrapper.sh
new file mode 100755
index 0000000..bfb6b37c
--- /dev/null
+++ b/tools/android/asan/asanwrapper.sh
@@ -0,0 +1,9 @@
+#!/system/bin/sh
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+ASAN_OPTIONS=debug=1,verbosity=1 \
+LD_LIBRARY_PATH=/data/local/tmp/asan:$LD_LIBRARY_PATH \
+LD_PRELOAD=libclang_rt.asan-arm-android.so \
+exec $@