build: Stop using __{DATE,TIME}__

Recording the compilation time modifies the source for dubious gain, and
interferes with reproducible builds [1].

[1] https://reproducible-builds.org/
This commit is contained in:
Justin M. Keyes 2015-12-13 12:36:43 -05:00 committed by Michael Reed
parent ec580da5f4
commit c6aa71605f
2 changed files with 10 additions and 16 deletions

View File

@ -272,19 +272,15 @@ g8 Print the hex values of the bytes used in the
:!! Repeat last ":!{cmd}". :!! Repeat last ":!{cmd}".
*:ve* *:version* *:ve* *:version*
:ve[rsion] Print the version number of the editor. If the :ve[rsion] Print the version number of the editor. The following
compiler used understands "__DATE__" the compilation lines contain information about which features were
date is mentioned. Otherwise a fixed release-date is enabled when Vim was compiled. When there is a
shown. preceding '+', the feature is included, when there is
The following lines contain information about which a '-' it is excluded. To change this, you have to
features were enabled when Vim was compiled. When edit feature.h and recompile Vim. To check for this
there is a preceding '+', the feature is included, in an expression, see |has()|. Here is an overview of
when there is a '-' it is excluded. To change this, the features. The first column shows the smallest
you have to edit feature.h and recompile Vim. version in which they are included:
To check for this in an expression, see |has()|.
Here is an overview of the features.
The first column shows the smallest version in which
they are included:
T tiny T tiny
S small S small
N normal N normal

View File

@ -35,8 +35,6 @@
char *Version = VIM_VERSION_SHORT; char *Version = VIM_VERSION_SHORT;
char *longVersion = NVIM_VERSION_LONG; char *longVersion = NVIM_VERSION_LONG;
char *longVersionWithDate = NVIM_VERSION_LONG \
" (compiled " __DATE__ " " __TIME__ ")";
char *version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE; char *version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE;
char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS; char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
@ -1173,7 +1171,7 @@ void list_version(void)
{ {
// When adding features here, don't forget to update the list of // When adding features here, don't forget to update the list of
// internal variables in eval.c! // internal variables in eval.c!
MSG(longVersionWithDate); MSG(longVersion);
MSG(version_buildtype); MSG(version_buildtype);
MSG(version_cflags); MSG(version_cflags);