cc-wrapper: Don't mess with __DATE__ and __TIME__

This is handled by $SOURCE_DATE_EPOCH now.
This commit is contained in:
Eelco Dolstra 2016-01-05 11:51:12 +01:00
parent 0db7ccb5c6
commit 2b5ed58099

View File

@ -90,14 +90,6 @@ fi
extraAfter=($NIX_CFLAGS_COMPILE) extraAfter=($NIX_CFLAGS_COMPILE)
extraBefore=() extraBefore=()
# When enforcing purity, pretend gcc can't find the current date and
# time
if [ "$NIX_ENFORCE_PURITY" = 1 ]; then
extraAfter+=('-D__DATE__="Jan 01 1970"'
'-D__TIME__="00:00:01"'
-Wno-builtin-macro-redefined)
fi
if [ "$dontLink" != 1 ]; then if [ "$dontLink" != 1 ]; then