mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include SOL_VERSION_COMMIT/SOL_VERSION_PLATFORM in buildinfo.h
This commit is contained in:
parent
350c7e7e2c
commit
4675599170
@ -60,6 +60,8 @@ if (SOL_COMMIT_HASH AND SOL_LOCAL_CHANGES)
|
|||||||
set(SOL_COMMIT_HASH "${SOL_COMMIT_HASH}.mod")
|
set(SOL_COMMIT_HASH "${SOL_COMMIT_HASH}.mod")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(SOL_VERSION_COMMIT "commit.${SOL_COMMIT_HASH}")
|
||||||
|
set(SOl_VERSION_PLATFORM ETH_BUILD_PLATFORM)
|
||||||
set(SOL_VERSION_BUILDINFO "commit.${SOL_COMMIT_HASH}.${ETH_BUILD_PLATFORM}")
|
set(SOL_VERSION_BUILDINFO "commit.${SOL_COMMIT_HASH}.${ETH_BUILD_PLATFORM}")
|
||||||
|
|
||||||
set(TMPFILE "${ETH_DST_DIR}/BuildInfo.h.tmp")
|
set(TMPFILE "${ETH_DST_DIR}/BuildInfo.h.tmp")
|
||||||
|
@ -8,3 +8,5 @@
|
|||||||
#define ETH_BUILD_PLATFORM "@ETH_BUILD_PLATFORM@"
|
#define ETH_BUILD_PLATFORM "@ETH_BUILD_PLATFORM@"
|
||||||
#define SOL_VERSION_PRERELEASE "@SOL_VERSION_PRERELEASE@"
|
#define SOL_VERSION_PRERELEASE "@SOL_VERSION_PRERELEASE@"
|
||||||
#define SOL_VERSION_BUILDINFO "@SOL_VERSION_BUILDINFO@"
|
#define SOL_VERSION_BUILDINFO "@SOL_VERSION_BUILDINFO@"
|
||||||
|
#define SOL_VERSION_COMMIT "@SOL_VERSION_COMMIT@"
|
||||||
|
#define SOL_VERSION_PLATFORM "@SOL_VERSION_PLATFORM@"
|
||||||
|
@ -40,7 +40,8 @@ string const dev::solidity::VersionString =
|
|||||||
|
|
||||||
string const dev::solidity::VersionStringStrict =
|
string const dev::solidity::VersionStringStrict =
|
||||||
string(dev::solidity::VersionNumber) +
|
string(dev::solidity::VersionNumber) +
|
||||||
(string(SOL_VERSION_PRERELEASE).empty() ? "" : "-" + string(SOL_VERSION_PRERELEASE));
|
(string(SOL_VERSION_PRERELEASE).empty() ? "" : "-" + string(SOL_VERSION_PRERELEASE)) +
|
||||||
|
(string(SOL_VERSION_COMMIT).empty() ? "" : "+" + string(SOL_VERSION_COMMIT));
|
||||||
|
|
||||||
bytes dev::solidity::binaryVersion()
|
bytes dev::solidity::binaryVersion()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user