mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Fix name matching to work on windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5011bd269
commit
98b5be8062
@ -876,9 +876,10 @@ int main(int argc, char **argv) {
|
||||
" This program archives bitcode files into single libraries\n"
|
||||
);
|
||||
|
||||
if (ToolName.endswith("ar"))
|
||||
StringRef Stem = sys::path::stem(ToolName);
|
||||
if (Stem.endswith("ar"))
|
||||
return ar_main(argv);
|
||||
if (ToolName.endswith("ranlib"))
|
||||
if (Stem.endswith("ranlib"))
|
||||
return ranlib_main();
|
||||
fail("Not ranlib or ar!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user