llvm.org GIT mirror llvm / 44e3735
Prefer ranlib mode over ar mode. For CloudABI's toolchain I have a symlink that goes from <target>-ar and <target>-ranlib to LLVM's ar binary, to mimick GNU Binutils' naming scheme. The problem is that if we're targetting ARM64, the name of the ranlib executable is aarch64-unknown-cloudabi-ranlib. This already contains the string "ar". Let's move the "ranlib" test above the "ar" test. It's not that likely that we're going to see operating systems or harwdare architectures that are called "ranlib". Reviewed by: rafael Differential Revision: http://reviews.llvm.org/D14123 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251413 91177308-0d34-0410-b5e6-96231b3b80d8 Ed Schouten 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
796796 " This program archives bitcode files into single libraries\n"
797797 );
798798
799 if (Stem.find("ranlib") != StringRef::npos)
800 return ranlib_main();
799801 if (Stem.find("ar") != StringRef::npos)
800802 return ar_main();
801 if (Stem.find("ranlib") != StringRef::npos)
802 return ranlib_main();
803803 fail("Not ranlib, ar or lib!");
804804 }