gcc-wrapper: Use a real date
Analogous to the fake timestamp in the Linux kernel build.
This commit is contained in:
parent
d4b49aa25f
commit
552b105206
|
@ -87,8 +87,8 @@ extraBefore=()
|
||||||
# When enforcing purity, pretend gcc can't find the current date and
|
# When enforcing purity, pretend gcc can't find the current date and
|
||||||
# time
|
# time
|
||||||
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
||||||
extraAfter+=('-D__DATE__="??? ?? ????"'
|
extraAfter+=('-D__DATE__="Jan 01 1970"'
|
||||||
'-D__TIME__="??:??:??"'
|
'-D__TIME__="00:00:01"'
|
||||||
-Wno-builtin-macro-redefined)
|
-Wno-builtin-macro-redefined)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue