aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-17 18:49:45 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-26 22:05:16 +0800
commit6848199b66d9cadae901f71dcf944fe9aa927eeb (patch)
tree3fb478a531be2eddae472ef8100f6eed9e75ba74 /libsolidity/interface/StandardCompiler.cpp
parentfa5a7efb45de72d0a83e2e0bdb9b967f76f0c070 (diff)
downloaddexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.tar.gz
dexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.tar.zst
dexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.zip
Add CompilerStack::setLibraries
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 82eeac3d..1690f3cc 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -259,6 +259,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
// @TODO use libraries only for the given source
libraries[library] = h160(jsonSourceName[library].asString());
}
+ m_compilerStack.setLibraries(libraries);
Json::Value metadataSettings = settings.get("metadata", Json::Value());
m_compilerStack.useMetadataLiteralSources(metadataSettings.get("useLiteralContent", Json::Value(false)).asBool());
@@ -267,7 +268,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
try
{
- m_compilerStack.compile(optimize, optimizeRuns, libraries);
+ m_compilerStack.compile(optimize, optimizeRuns);
for (auto const& error: m_compilerStack.errors())
{