Disallow __DATE__/__TIME__ on host builds

Instead of just making this an error when building for the device, also
turn on this error for host builds. This is more important as we begin
to use remote caches during the build.

Test: treehugger
Change-Id: I6fcc945464032d951729aead540ea77850c88c41
This commit is contained in:
Dan Willemsen 2019-08-27 19:37:10 -07:00
parent f1ff226cd4
commit 5d980c878d
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,8 @@ var (
"-g",
"-fno-strict-aliasing",
"-Werror=date-time",
}
commonGlobalConlyflags = []string{}
@ -67,7 +69,6 @@ var (
"-Werror=non-virtual-dtor",
"-Werror=address",
"-Werror=sequence-point",
"-Werror=date-time",
"-Werror=format-security",
}