Skip to content
Snippets Groups Projects
Commit 95ecd1e1 authored by Android Build Role Account android-build-prod's avatar Android Build Role Account android-build-prod
Browse files

Snap for 5356090 from 90b3b641 to q-keystone-qcom-release

Change-Id: I301e486d0188804e3447f56f3cfccb78f4e29b00
parents 42c7b862 90b3b641
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ int sanitizer_status(int argc, const char** argv) {
if (test_everything || have_option("asan", argv, argc)) {
int asan_failures = 0;
#ifndef ANDROID_SANITIZE_ADDRESS
#if !defined(ANDROID_SANITIZE_ADDRESS) && !defined(ANDROID_SANITIZE_HWADDRESS)
asan_failures += 1;
printf("ASAN: Compiler flags failed!\n");
#endif
......
......@@ -28,6 +28,9 @@ func loadHook(ctx android.LoadHookContext) {
if android.InList("address", sanitizers) {
p.Cflags = append(p.Cflags, "-DANDROID_SANITIZE_ADDRESS=1")
}
if android.InList("hwaddress", sanitizers) {
p.Cflags = append(p.Cflags, "-DANDROID_SANITIZE_HWADDRESS=1")
}
if android.InList("coverage", sanitizers) {
p.Cflags = append(p.Cflags, "-DANDROID_SANITIZE_COVERAGE=1")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment