aboutsummaryrefslogtreecommitdiffstats
path: root/lllc/main.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-01 20:02:08 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-01 20:02:08 +0800
commit77a7bafb2d78c3e08c47fd5c02ba0ae1753c9ce9 (patch)
treed649c32dd7598cf6daebec100cd0f0aa95903c3f /lllc/main.cpp
parent1a2c150e3b2f98ef44834aca281692734b74c0db (diff)
downloaddexon-solidity-77a7bafb2d78c3e08c47fd5c02ba0ae1753c9ce9.tar.gz
dexon-solidity-77a7bafb2d78c3e08c47fd5c02ba0ae1753c9ce9.tar.zst
dexon-solidity-77a7bafb2d78c3e08c47fd5c02ba0ae1753c9ce9.zip
LLL: include version number in lllc (verbatim copy of solc)
Diffstat (limited to 'lllc/main.cpp')
-rw-r--r--lllc/main.cpp9
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);
}