1
0
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:
Sadie Powell
2025-03-06 01:23:14 +00:00
parent 9926ac5a05
commit 2091dc68bc
3 changed files with 7 additions and 6 deletions
-5
View File
@@ -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)
+3
View File
@@ -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
View File
@@ -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