diff options
author | chriseth <chris@ethereum.org> | 2016-11-04 18:31:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 18:31:10 +0800 |
commit | 846b76b14187f93766ebbd63e63c0cc9375e1ab9 (patch) | |
tree | 6f36df0493d7c68bc1ed7bcd2d6410e934c3bc58 | |
parent | d97d267a96b973104e9d29bed3e6cedcd223a96b (diff) | |
parent | 77a7bafb2d78c3e08c47fd5c02ba0ae1753c9ce9 (diff) | |
download | dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar.gz dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar.bz2 dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar.lz dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar.xz dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.tar.zst dexon-solidity-846b76b14187f93766ebbd63e63c0cc9375e1ab9.zip |
Merge pull request #1314 from ethereum/lll-version
LLL: include version number in lllc (verbatim copy of solc)
-rw-r--r-- | lllc/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp index f8677be0..9763e820 100644 --- a/lllc/main.cpp +++ b/lllc/main.cpp @@ -27,11 +27,18 @@ #include <libdevcore/CommonIO.h> #include <libdevcore/CommonData.h> #include <libevmasm/Instruction.h> +#include <solidity/BuildInfo.h> + using namespace std; using namespace dev; using namespace dev::solidity; using namespace dev::eth; +static string const VersionString = + string(ETH_PROJECT_VERSION) + + (string(SOL_VERSION_PRERELEASE).empty() ? "" : "-" + string(SOL_VERSION_PRERELEASE)) + + (string(SOL_VERSION_BUILDINFO).empty() ? "" : "+" + string(SOL_VERSION_BUILDINFO)); + void help() { cout @@ -50,7 +57,7 @@ void help() void version() { cout << "LLLC, the Lovely Little Language Compiler " << endl; - cout << " By Gav Wood, (c) 2014." << endl; + cout << "Version: " << VersionString << endl; exit(0); } |