From 5898ff112857205316efa2ce9a2f78944e7f2ee2 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 27 Jun 2022 00:42:46 +0200 Subject: [PATCH] Include stdlib in compilerstack --- libsolidity/interface/CompilerStack.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 14fa3c528..f48d02e2e 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -77,6 +77,8 @@ #include #include +#include "stdlib.h" + #include #include @@ -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(content, name); + vector sourcesToParse; for (auto const& s: m_sources) sourcesToParse.push_back(s.first);