aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-08-23 22:04:50 +0800
committerchriseth <c@ethdev.com>2016-08-26 16:14:44 +0800
commit54ab787b83275fd374b3951ec3efa577c954bd1a (patch)
tree7a8d2e225d8dcf05f070d8223a61bc23efc1872e /libsolidity
parentd209e65b1d9ce3f49821970e96e027ba5243e386 (diff)
downloaddexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar
dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.gz
dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.bz2
dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.lz
dexon-solidity-54ab787b83275fd374b3951ec3efa577c954bd1a.tar.xz
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.cpp6
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()