diff options
author | Steven Moreland <smoreland@google.com> | 2019-09-19 11:08:47 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2019-09-19 18:18:23 +0000 |
commit | 2700afda04799dfa74611a6f9942c4fd6e578b8c (patch) | |
tree | c2daf231fe1b111da0368362bcd1becf2e6d85b9 /tools/aapt2/Main.cpp | |
parent | b0e6033182d6397ad2248e924556f8411def278b (diff) |
aapt2: disable leak detection
When building with SANATIZE_HOST=address and ASAN_OPTIONS="" in order to
test that leaks are removed from AIDL, was hitting leaks here.
Explicitly setting ASAN_OPTIONS here so that we can detect leaks in
other host tools.
Bug: 141312058
Test: AIDL's runtests_asan.sh
Change-Id: Ibc599ab75bbf63eab1c7747d17952390a7967e87
Diffstat (limited to 'tools/aapt2/Main.cpp')
-rw-r--r-- | tools/aapt2/Main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/Main.cpp b/tools/aapt2/Main.cpp index 213bdd2372ec..7966ba27ebd8 100644 --- a/tools/aapt2/Main.cpp +++ b/tools/aapt2/Main.cpp @@ -177,6 +177,11 @@ int MainImpl(int argc, char** argv) { return main_command->Execute(args, &std::cerr); } +// TODO(b/141312058) stop leaks +extern "C" const char *__asan_default_options() { + return "detect_leaks=0"; +} + int main(int argc, char** argv) { #ifdef _WIN32 LPWSTR* wide_argv = CommandLineToArgvW(GetCommandLineW(), &argc); |