mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Support names like llvm-ar-3.4 and llvm-ranlib-3.4.
They are used in some packages. For example: http://packages.ubuntu.com/saucy/i386/llvm-3.4/filelist This fixes pr17721. llvm-svn: 193612
This commit is contained in:
parent
121891c3a9
commit
384d1f23a0
@ -877,9 +877,9 @@ int main(int argc, char **argv) {
|
||||
);
|
||||
|
||||
StringRef Stem = sys::path::stem(ToolName);
|
||||
if (Stem.endswith("ar"))
|
||||
if (Stem.find("ar") != StringRef::npos)
|
||||
return ar_main(argv);
|
||||
if (Stem.endswith("ranlib"))
|
||||
if (Stem.find("ranlib") != StringRef::npos)
|
||||
return ranlib_main();
|
||||
fail("Not ranlib or ar!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user