OSDN Git Service

Add -Werror=date-time to target builds
authorDan Willemsen <dwillemsen@google.com>
Wed, 6 Jan 2016 22:27:53 +0000 (14:27 -0800)
committerDan Willemsen <dwillemsen@google.com>
Sat, 9 Jan 2016 00:29:50 +0000 (16:29 -0800)
The lack of a changing timestamp improves reproducibility of builds, and
helps create smaller OTAs.

Bug: 24204119
Change-Id: I68acfb53be962ffd5c488337517dadb950a13b6f

core/config.mk

index 37c781d..da53c34 100644 (file)
@@ -604,7 +604,7 @@ GLOBAL_CLANG_CFLAGS_NO_OVERRIDE := \
 GLOBAL_CPPFLAGS_NO_OVERRIDE :=
 
 # list of flags to turn specific warnings in to errors
-TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point
+TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time
 
 # We run gcc/clang with PWD=/proc/self/cwd to remove the $TOP
 # from the debug output. That way two builds in two different