mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow trailing slash in solc -allow-paths.
This commit is contained in:
parent
094012dbb0
commit
71a819654e
@ -717,7 +717,7 @@ bool CommandLineInterface::processInput()
|
|||||||
{
|
{
|
||||||
vector<string> paths;
|
vector<string> paths;
|
||||||
for (string const& path: boost::split(paths, m_args[g_argAllowPaths].as<string>(), boost::is_any_of(",")))
|
for (string const& path: boost::split(paths, m_args[g_argAllowPaths].as<string>(), boost::is_any_of(",")))
|
||||||
m_allowedDirectories.push_back(boost::filesystem::path(path));
|
m_allowedDirectories.push_back(boost::filesystem::path(path).remove_trailing_separator());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_args.count(g_argStandardJSON))
|
if (m_args.count(g_argStandardJSON))
|
||||||
|
Loading…
Reference in New Issue
Block a user