From db2f3c57147c21da8a549a6052256540d3c41e3e Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 25 Jan 2016 19:42:17 +0100 Subject: Provide remappings for solc. --- solc/CommandLineInterface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'solc/CommandLineInterface.h') diff --git a/solc/CommandLineInterface.h b/solc/CommandLineInterface.h index 7c7aa4b4..7fdc9c0d 100644 --- a/solc/CommandLineInterface.h +++ b/solc/CommandLineInterface.h @@ -61,6 +61,8 @@ private: void handleGasEstimation(std::string const& _contract); void handleFormal(); + /// Fills @a m_sourceCodes initially and @a m_redirects. + void readInputFilesAndConfigureRemappings(); /// Tries to read from the file @a _input or interprets _input literally if that fails. /// It then tries to parse the contents and appends to m_libraries. bool parseLibraryOption(std::string const& _input); @@ -76,6 +78,8 @@ private: boost::program_options::variables_map m_args; /// map of input files to source code strings std::map m_sourceCodes; + /// list of path prefix remappings, e.g. github.com/ethereum -> /usr/local/ethereum + std::vector> m_remappings; /// map of library names to addresses std::map m_libraries; /// Solidity compiler stack -- cgit