aboutsummaryrefslogtreecommitdiffstats
path: root/solc/jsonCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-14 04:47:33 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-14 21:14:01 +0800
commit412802a6c151437c07ef47b2b499e863ee81e1ea (patch)
tree29d814291cd037f518348cd830f5b0f0d80879c9 /solc/jsonCompiler.cpp
parent0b99c81f8536aa7888f26ac349ab233825350efc (diff)
downloaddexon-solidity-412802a6c151437c07ef47b2b499e863ee81e1ea.tar.gz
dexon-solidity-412802a6c151437c07ef47b2b499e863ee81e1ea.tar.zst
dexon-solidity-412802a6c151437c07ef47b2b499e863ee81e1ea.zip
Include license text in emscripten output
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r--solc/jsonCompiler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp
index 1505a43d..353258a6 100644
--- a/solc/jsonCompiler.cpp
+++ b/solc/jsonCompiler.cpp
@@ -41,6 +41,8 @@
#include <libsolidity/ast/ASTJsonConverter.h>
#include <libsolidity/interface/Version.h>
+#include "license.h"
+
using namespace std;
using namespace dev;
using namespace solidity;
@@ -305,6 +307,11 @@ static string s_outputBuffer;
extern "C"
{
+extern char const* license()
+{
+ /// TOOD: include the copyright information on the top.
+ return licenseText;
+}
extern char const* version()
{
return VersionString.c_str();