Include stdlib in compilerstack

This commit is contained in:
Alex Beregszaszi
2023-02-02 11:17:15 +01:00
committed by Nikola Matic
parent a710ec1b4e
commit 5898ff1128
+5
View File
@@ -77,6 +77,8 @@
#include <libsolutil/Algorithms.h>
#include <libsolutil/FunctionSelector.h>
#include "stdlib.h"
#include <json/json.h>
#include <boost/algorithm/string/replace.hpp>
@@ -350,6 +352,9 @@ bool CompilerStack::parse()
Parser parser{m_errorReporter, m_evmVersion, m_parserErrorRecovery};
for (auto [name, content]: solidity::stdlib::sources)
m_sources[name].charStream = make_unique<CharStream>(content, name);
vector<string> sourcesToParse;
for (auto const& s: m_sources)
sourcesToParse.push_back(s.first);