Skip to content
Snippets Groups Projects
Commit c5257c3e authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5304721 from 3c5ee5d6 to qt-release

Change-Id: Ica1d8a973230ac0e5f57502d7dc581067f9b401b
parents 630a9695 3c5ee5d6
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) { ...@@ -143,7 +143,7 @@ int sanitizer_status(int argc, const char** argv) {
if (test_everything || have_option("asan", argv, argc)) { if (test_everything || have_option("asan", argv, argc)) {
int asan_failures = 0; int asan_failures = 0;
#ifndef ANDROID_SANITIZE_ADDRESS #if !defined(ANDROID_SANITIZE_ADDRESS) && !defined(ANDROID_SANITIZE_HWADDRESS)
asan_failures += 1; asan_failures += 1;
printf("ASAN: Compiler flags failed!\n"); printf("ASAN: Compiler flags failed!\n");
#endif #endif
......
...@@ -28,6 +28,9 @@ func loadHook(ctx android.LoadHookContext) { ...@@ -28,6 +28,9 @@ func loadHook(ctx android.LoadHookContext) {
if android.InList("address", sanitizers) { if android.InList("address", sanitizers) {
p.Cflags = append(p.Cflags, "-DANDROID_SANITIZE_ADDRESS=1") 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) { if android.InList("coverage", sanitizers) {
p.Cflags = append(p.Cflags, "-DANDROID_SANITIZE_COVERAGE=1") 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