On 22 December 2016 at 14:44, Ed Schouten <[email protected]> wrote:
> 2016-12-22 19:26 GMT+01:00 Ed Maste <[email protected]>:
>> Log:
>> mlx: avoid use of __DATE__ to make build reproducible
>
> Out of curiosity, are we planning on adding -Wdate-time or
> -Werror=date-time to our default CFLAGS? If so, awesome!
I hadn't thought of it, but good idea. Maybe something like this for now:
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -88,6 +88,9 @@ CWARNFLAGS.clang+= -Wno-parentheses
.if defined(NO_WARRAY_BOUNDS)
CWARNFLAGS.clang+= -Wno-array-bounds
.endif # NO_WARRAY_BOUNDS
+.if ${MK_REPRODUCIBLE_BUILD} != no
+CWARNFLAGS.clang+= -Wdate-time
+.endif # MK_REPRODUCIBLE_BUILD
.endif # WARNS
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"