mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix crash for input from stdin.
This commit is contained in:
parent
5f97274a6c
commit
781b7eaefe
@ -564,6 +564,7 @@ bool CommandLineInterface::processInput()
|
||||
auto scannerFromSourceName = [&](string const& _sourceName) -> solidity::Scanner const& { return m_compiler->scanner(_sourceName); };
|
||||
try
|
||||
{
|
||||
if (m_args.count("input-file"))
|
||||
m_compiler->setRemappings(m_args["input-file"].as<vector<string>>());
|
||||
for (auto const& sourceCode: m_sourceCodes)
|
||||
m_compiler->addSource(sourceCode.first, sourceCode.second);
|
||||
|
Loading…
Reference in New Issue
Block a user