Test enable sanitizers for debug build to aid in bug diagnostics.
Bug:
73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: Iba9351e11592940e3ceff06d5cad32f5aed38388
"-g",
"-UNDEBUG",
],
+
+ // Add sanitizers that work w/o extra libraries. This is important
+ // for atest etc to work.
+ sanitize: {
+ integer_overflow: true,
+ undefined: true,
+ },
+
+ target: {
+ // On the host add ASAN.
+ host: {
+ sanitize: {
+ address: true,
+ },
+ },
+ }
}
//
"libbase",
"libutils",
"libz",
- ],
- shared_libs: [
"libprotobuf-cpp-lite",
"liblog",
],