comparison gcc/doc/cppenv.texi @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents a06113de4d67
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 @c Copyright (c) 1999, 2000, 2001, 2002, 2004 1 @c Copyright (C) 1999-2017 Free Software Foundation, Inc.
2 @c Free Software Foundation, Inc.
3 @c This is part of the CPP and GCC manuals. 2 @c This is part of the CPP and GCC manuals.
4 @c For copying conditions, see the file gcc.texi. 3 @c For copying conditions, see the file gcc.texi.
5 4
6 @c --------------------------------------------------------------------- 5 @c ---------------------------------------------------------------------
7 @c Environment variables affecting the preprocessor 6 @c Environment variables affecting the preprocessor
78 @xref{Invocation}. 77 @xref{Invocation}.
79 @end ifset 78 @end ifset
80 @ifclear cppmanual 79 @ifclear cppmanual
81 @xref{Preprocessor Options}. 80 @xref{Preprocessor Options}.
82 @end ifclear 81 @end ifclear
82
83 @item SOURCE_DATE_EPOCH
84 If this variable is set, its value specifies a UNIX timestamp to be
85 used in replacement of the current date and time in the @code{__DATE__}
86 and @code{__TIME__} macros, so that the embedded timestamps become
87 reproducible.
88
89 The value of @env{SOURCE_DATE_EPOCH} must be a UNIX timestamp,
90 defined as the number of seconds (excluding leap seconds) since
91 01 Jan 1970 00:00:00 represented in ASCII; identical to the output of
92 @samp{@command{date +%s}} on GNU/Linux and other systems that support the
93 @code{%s} extension in the @code{date} command.
94
95 The value should be a known timestamp such as the last modification
96 time of the source or package and it should be set by the build
97 process.
98
83 @end vtable 99 @end vtable