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,7 +564,8 @@ bool CommandLineInterface::processInput()
|
|||||||
auto scannerFromSourceName = [&](string const& _sourceName) -> solidity::Scanner const& { return m_compiler->scanner(_sourceName); };
|
auto scannerFromSourceName = [&](string const& _sourceName) -> solidity::Scanner const& { return m_compiler->scanner(_sourceName); };
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_compiler->setRemappings(m_args["input-file"].as<vector<string>>());
|
if (m_args.count("input-file"))
|
||||||
|
m_compiler->setRemappings(m_args["input-file"].as<vector<string>>());
|
||||||
for (auto const& sourceCode: m_sourceCodes)
|
for (auto const& sourceCode: m_sourceCodes)
|
||||||
m_compiler->addSource(sourceCode.first, sourceCode.second);
|
m_compiler->addSource(sourceCode.first, sourceCode.second);
|
||||||
// TODO: Perhaps we should not compile unless requested
|
// TODO: Perhaps we should not compile unless requested
|
||||||
|
Loading…
Reference in New Issue
Block a user