summaryrefslogtreecommitdiff
path: root/lib/asan/asan_activation.cc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-12-04 22:28:27 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-12-04 22:28:27 +0000
commitabd879561306f5221e17a32073e67bc8c8d0d9c2 (patch)
treece31b704af27f2aa5b6cee345a54708c1d088619 /lib/asan/asan_activation.cc
parent3832f8e338208f3b58cd1360dd167e429005a531 (diff)
[asan] Remove the use of system properties on Android.
System properties are not accessible through NDK (we've been using hacks to get to them) and they are unavailable during ASan initialization in .preinit_array. Use environment variables and files instead (ex. ASAN_OPTIONS=include_if_exists=/path). No test changes. This feature was not tested because the properties are system-wide and would conflict with the parallel test runner. Yet another reason to get rid of it. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_activation.cc')
-rw-r--r--lib/asan/asan_activation.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/asan/asan_activation.cc b/lib/asan/asan_activation.cc
index 1d3582c16..9df3b977e 100644
--- a/lib/asan/asan_activation.cc
+++ b/lib/asan/asan_activation.cc
@@ -61,11 +61,6 @@ static struct AsanDeactivatedFlags {
parser.ParseString(env);
}
- // Override from getprop asan.options.
- char buf[100];
- GetExtraActivationFlags(buf, sizeof(buf));
- parser.ParseString(buf);
-
SetVerbosity(cf.verbosity);
if (Verbosity()) ReportUnrecognizedFlags();