diff options
author | chriseth <c@ethdev.com> | 2016-08-23 22:04:50 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-26 16:14:44 +0800 |
commit | 54ab787b83275fd374b3951ec3efa577c954bd1a (patch) | |
tree | 7a8d2e225d8dcf05f070d8223a61bc23efc1872e /libsolidity | |
parent | d209e65b1d9ce3f49821970e96e027ba5243e386 (diff) | |
download | dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.gz dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.zst dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.zip |
Make versioning semver compatible and force commit hash availability.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/interface/Version.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/interface/Version.cpp b/libsolidity/interface/Version.cpp index a846efea..31ba4afc 100644 --- a/libsolidity/interface/Version.cpp +++ b/libsolidity/interface/Version.cpp @@ -35,10 +35,8 @@ char const* dev::solidity::VersionNumber = ETH_PROJECT_VERSION; string const dev::solidity::VersionString = string(dev::solidity::VersionNumber) + - "-" + - string(DEV_QUOTED(ETH_COMMIT_HASH)).substr(0, 8) + - (ETH_CLEAN_REPO ? "" : "*") + - "/" DEV_QUOTED(ETH_BUILD_TYPE) "-" DEV_QUOTED(ETH_BUILD_PLATFORM); + (string(SOL_VERSION_PRERELEASE).empty() ? "" : "-" + string(SOL_VERSION_PRERELEASE)) + + (string(SOL_VERSION_BUILDINFO).empty() ? "" : "+" + string(SOL_VERSION_BUILDINFO)); bytes dev::solidity::binaryVersion() |