[asan] Support per-application flags in the Android setup script.

llvm-svn: 243494
This commit is contained in:
Evgeniy Stepanov 2015-07-28 22:45:24 +00:00
parent 2670f4a550
commit 8e36aa6e02
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ fi
cat <<EOF >"$TMPDIR/app_process.wrap"
#!/system/bin/sh-from-zygote
ASAN_OPTIONS=$ASAN_OPTIONS \\
ASAN_ACTIVATION_OPTIONS=include_if_exists=/data/local/tmp/asan.options.%b \\
LD_PRELOAD=\$LD_PRELOAD:$ASAN_RT \\
exec /system/bin/app_process32 \$@