aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2017-10-04 01:28:45 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-06 20:55:18 +0800
commit71a819654e3c46aee92b831b835887ea200944f0 (patch)
treefc954cee357dcb6de1aa017070357efde04dc116
parent094012dbb046655ac0291f6c4632f306406c0ada (diff)
downloaddexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.gz
dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.zst
dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.zip
Allow trailing slash in solc -allow-paths.
-rw-r--r--solc/CommandLineInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 271511d4..36fcc1a4 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -717,7 +717,7 @@ bool CommandLineInterface::processInput()
{
vector<string> paths;
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))