mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 04:32:20 +02:00
clientversion: No suffix #if CLIENT_VERSION_IS_RELEASE
Previously, building from a release source tarball would result in a version string like v22.0.0-<commithash>, but we expect just v22.0.0. This commit solves this problem. Also use PACKAGE_VERSION instead of reconstructing it.
This commit is contained in:
@ -30,8 +30,10 @@ const std::string CLIENT_NAME("Satoshi");
|
|||||||
#define BUILD_DESC BUILD_GIT_TAG
|
#define BUILD_DESC BUILD_GIT_TAG
|
||||||
#define BUILD_SUFFIX ""
|
#define BUILD_SUFFIX ""
|
||||||
#else
|
#else
|
||||||
#define BUILD_DESC "v" STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_BUILD)
|
#define BUILD_DESC "v" PACKAGE_VERSION
|
||||||
#ifdef BUILD_GIT_COMMIT
|
#if CLIENT_VERSION_IS_RELEASE
|
||||||
|
#define BUILD_SUFFIX ""
|
||||||
|
#elif defined(BUILD_GIT_COMMIT)
|
||||||
#define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
|
#define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
|
||||||
#elif defined(GIT_COMMIT_ID)
|
#elif defined(GIT_COMMIT_ID)
|
||||||
#define BUILD_SUFFIX "-g" GIT_COMMIT_ID
|
#define BUILD_SUFFIX "-g" GIT_COMMIT_ID
|
||||||
|
Reference in New Issue
Block a user