aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-26 02:42:17 +0800
committerchriseth <c@ethdev.com>2016-01-26 04:01:55 +0800
commitdb2f3c57147c21da8a549a6052256540d3c41e3e (patch)
treeb8af9542c7aea99767b1c0bafd780803a56e7395 /solc/CommandLineInterface.h
parent194679f77ada30b04f483e96197e890e41a0c22c (diff)
downloaddexon-solidity-db2f3c57147c21da8a549a6052256540d3c41e3e.tar.gz
dexon-solidity-db2f3c57147c21da8a549a6052256540d3c41e3e.tar.zst
dexon-solidity-db2f3c57147c21da8a549a6052256540d3c41e3e.zip
Provide remappings for solc.
Diffstat (limited to 'solc/CommandLineInterface.h')
-rw-r--r--solc/CommandLineInterface.h4
1 files changed, 4 insertions, 0 deletions
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<std::string, std::string> m_sourceCodes;
+ /// list of path prefix remappings, e.g. github.com/ethereum -> /usr/local/ethereum
+ std::vector<std::pair<std::string, std::string>> m_remappings;
/// map of library names to addresses
std::map<std::string, h160> m_libraries;
/// Solidity compiler stack