From eff06110966b3c65733fa488bec64c95f5d996d1 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 6 Jan 2016 14:27:53 -0800 Subject: [PATCH] Add -Werror=date-time to target builds The lack of a changing timestamp improves reproducibility of builds, and helps create smaller OTAs. Bug: 24204119 Change-Id: I68acfb53be962ffd5c488337517dadb950a13b6f --- core/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.mk b/core/config.mk index 37c781d09..da53c3427 100644 --- a/core/config.mk +++ b/core/config.mk @@ -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 -- 2.11.0