mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
build: remove CFLAGS from :version in non-debug builds #15424
A step towards reproducible builds.
This commit is contained in:
@@ -39,7 +39,10 @@ NVIM_VERSION_PRERELEASE
|
|||||||
char *Version = VIM_VERSION_SHORT;
|
char *Version = VIM_VERSION_SHORT;
|
||||||
char *longVersion = NVIM_VERSION_LONG;
|
char *longVersion = NVIM_VERSION_LONG;
|
||||||
char *version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE;
|
char *version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE;
|
||||||
|
// Reproducible builds: omit compile info in Release builds. #15424
|
||||||
|
#ifndef NDEBUG
|
||||||
char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
|
char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
# include "version.c.generated.h"
|
# include "version.c.generated.h"
|
||||||
@@ -2143,7 +2146,9 @@ void list_version(void)
|
|||||||
MSG(longVersion);
|
MSG(longVersion);
|
||||||
MSG(version_buildtype);
|
MSG(version_buildtype);
|
||||||
list_lua_version();
|
list_lua_version();
|
||||||
|
#ifndef NDEBUG
|
||||||
MSG(version_cflags);
|
MSG(version_cflags);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PATHDEF
|
#ifdef HAVE_PATHDEF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user