llvm.org GIT mirror llvm / 54818dc
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193612 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
876876 );
877877
878878 StringRef Stem = sys::path::stem(ToolName);
879 if (Stem.endswith("ar"))
879 if (Stem.find("ar") != StringRef::npos)
880880 return ar_main(argv);
881 if (Stem.endswith("ranlib"))
881 if (Stem.find("ranlib") != StringRef::npos)
882882 return ranlib_main();
883883 fail("Not ranlib or ar!");
884884 }