mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Move REPRODUCIBLE_BUILD to sysconf.
This commit is contained in:
@@ -142,11 +142,6 @@ include_directories(
|
||||
${Anope_SOURCE_DIR}/vendor
|
||||
)
|
||||
|
||||
# Pass on REPRODUCIBLE_BUILD
|
||||
if(REPRODUCIBLE_BUILD)
|
||||
add_definitions(-DREPRODUCIBLE_BUILD)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
# If using Windows, include the windows specific folder for anope_windows.h
|
||||
include_directories(${Anope_SOURCE_DIR}/src/win32)
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
// Whether the umask() function is available.
|
||||
#cmakedefine01 HAVE_UMASK
|
||||
|
||||
// Whether Anope was built in a reproducible way.
|
||||
#cmakedefine01 REPRODUCIBLE_BUILD
|
||||
|
||||
#ifdef _WIN32
|
||||
# define popen _popen
|
||||
# define pclose _pclose
|
||||
|
||||
+4
-1
@@ -590,7 +590,7 @@ Anope::string Anope::VersionShort()
|
||||
|
||||
Anope::string Anope::VersionBuildString()
|
||||
{
|
||||
#ifdef REPRODUCIBLE_BUILD
|
||||
#if REPRODUCIBLE_BUILD
|
||||
Anope::string s = "build #" + Anope::ToString(BUILD);
|
||||
#else
|
||||
Anope::string s = "build #" + Anope::ToString(BUILD) + ", compiled " + Anope::compiled;
|
||||
@@ -603,6 +603,9 @@ Anope::string Anope::VersionBuildString()
|
||||
#ifdef VERSION_GIT
|
||||
flags += "G";
|
||||
#endif
|
||||
#if REPRODUCIBLE_BUILD
|
||||
flags += "R"
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
flags += "W";
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user