mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parse remappings in StandardCompiler
This commit is contained in:
parent
81775b2df6
commit
ce87984cc1
@ -45,6 +45,11 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
|
||||
Json::Value const& settings = _input.get("settings", Json::Value());
|
||||
|
||||
vector<string> remappings;
|
||||
for (auto const& remapping: settings.get("remappings", Json::Value()))
|
||||
remappings.push_back(remapping.asString());
|
||||
m_compilerStack.setRemappings(remappings);
|
||||
|
||||
Json::Value optimizerSettings = settings.get("optimizer", Json::Value());
|
||||
bool optimize = optimizerSettings.get("enabled", Json::Value(false)).asBool();
|
||||
unsigned optimizeRuns = optimizerSettings.get("runs", Json::Value(200u)).asUInt();
|
||||
|
Loading…
Reference in New Issue
Block a user