diff options
author | VoR0220 <rj@erisindustries.com> | 2017-01-31 03:41:33 +0800 |
---|---|---|
committer | VoR0220 <rj@erisindustries.com> | 2017-01-31 03:41:33 +0800 |
commit | b3f0d713a18b78b577e95175876646e53be5df41 (patch) | |
tree | cf574fa9e9fe39a2b67239ffd23ee4558f2bfd32 /solc/CommandLineInterface.cpp | |
parent | edd3696dc1efa87bd0f62e02637874e1a0f43dad (diff) | |
download | dexon-solidity-b3f0d713a18b78b577e95175876646e53be5df41.tar.gz dexon-solidity-b3f0d713a18b78b577e95175876646e53be5df41.tar.zst dexon-solidity-b3f0d713a18b78b577e95175876646e53be5df41.zip |
fix for linker wrt binaries generated with import statements
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 2c1f0644..dd80e189 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -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; |