mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1621 from VoR0220/fixLinkerForBinariesWithImports
fix for linker wrt binaries generated with import statements
This commit is contained in:
commit
547501c02e
@ -426,7 +426,9 @@ bool CommandLineInterface::parseLibraryOption(string const& _input)
|
||||
for (string const& lib: libraries)
|
||||
if (!lib.empty())
|
||||
{
|
||||
auto colon = lib.find(':');
|
||||
//search for last colon in string as our binaries output placeholders in the form of file:Name
|
||||
//so we need to search for the second `:` in the string
|
||||
auto colon = lib.rfind(':');
|
||||
if (colon == string::npos)
|
||||
{
|
||||
cerr << "Colon separator missing in library address specifier \"" << lib << "\"" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user