Enable -Wexit-time-destructor for all targets

This warning should be available for Windows as well.

Test: mmma system/core/base
Change-Id: Id2e7e4da2e5105870a8d1e10c793e4a54c5b3d04
This commit is contained in:
Pirama Arumuga Nainar 2018-09-26 23:31:00 -07:00
parent 9c5c396d11
commit ca6ee8331f
1 changed files with 1 additions and 2 deletions

View File

@ -56,6 +56,7 @@ cc_defaults {
"test_utils.cpp",
],
cppflags: ["-Wexit-time-destructors"],
shared_libs: ["liblog"],
target: {
android: {
@ -68,13 +69,11 @@ cc_defaults {
srcs: [
"errors_unix.cpp",
],
cppflags: ["-Wexit-time-destructors"],
},
darwin: {
srcs: [
"errors_unix.cpp",
],
cppflags: ["-Wexit-time-destructors"],
},
linux_bionic: {
enabled: true,