Merge pull request #1314 from ethereum/lll-version

LLL: include version number in lllc (verbatim copy of solc)
This commit is contained in:
chriseth 2016-11-04 11:31:10 +01:00 committed by GitHub
commit 846b76b141

View File

@ -27,11 +27,18 @@
#include <libdevcore/CommonIO.h> #include <libdevcore/CommonIO.h>
#include <libdevcore/CommonData.h> #include <libdevcore/CommonData.h>
#include <libevmasm/Instruction.h> #include <libevmasm/Instruction.h>
#include <solidity/BuildInfo.h>
using namespace std; using namespace std;
using namespace dev; using namespace dev;
using namespace dev::solidity; using namespace dev::solidity;
using namespace dev::eth; 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() void help()
{ {
cout cout
@ -50,7 +57,7 @@ void help()
void version() void version()
{ {
cout << "LLLC, the Lovely Little Language Compiler " << endl; cout << "LLLC, the Lovely Little Language Compiler " << endl;
cout << " By Gav Wood, (c) 2014." << endl; cout << "Version: " << VersionString << endl;
exit(0); exit(0);
} }