diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-17 18:49:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-26 22:05:16 +0800 |
commit | 6848199b66d9cadae901f71dcf944fe9aa927eeb (patch) | |
tree | 3fb478a531be2eddae472ef8100f6eed9e75ba74 /solc/CommandLineInterface.cpp | |
parent | fa5a7efb45de72d0a83e2e0bdb9b967f76f0c070 (diff) | |
download | dexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.tar.gz dexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.tar.zst dexon-solidity-6848199b66d9cadae901f71dcf944fe9aa927eeb.zip |
Add CompilerStack::setLibraries
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index db497d84..38f72713 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -774,10 +774,12 @@ bool CommandLineInterface::processInput() m_compiler->setRemappings(m_args[g_argInputFile].as<vector<string>>()); for (auto const& sourceCode: m_sourceCodes) m_compiler->addSource(sourceCode.first, sourceCode.second); + if (m_args.count(g_argLibraries)) + m_compiler->setLibraries(m_libraries); // TODO: Perhaps we should not compile unless requested bool optimize = m_args.count(g_argOptimize) > 0; unsigned runs = m_args[g_argOptimizeRuns].as<unsigned>(); - bool successful = m_compiler->compile(optimize, runs, m_libraries); + bool successful = m_compiler->compile(optimize, runs); for (auto const& error: m_compiler->errors()) SourceReferenceFormatter::printExceptionInformation( |