Skip to content

Commit

Permalink
Include license text in emscripten output
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 14, 2017
1 parent 0b99c81 commit 412802a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions solc/jsonCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 412802a

Please sign in to comment.