Make getArchNameForCompilerRTLib return the right thing on 32-bit Windows. Fixes the tests there.

llvm-svn: 241228
This commit is contained in:
Peter Collingbourne 2015-07-02 02:07:43 +00:00
parent 23a410cc64
commit 2659fb370e
1 changed files with 4 additions and 0 deletions

View File

@ -2231,6 +2231,10 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
// Until ARM libraries are build separately, we have them all in one library
static StringRef getArchNameForCompilerRTLib(const ToolChain &TC) {
if (TC.getTriple().isOSWindows() &&
!TC.getTriple().isWindowsItaniumEnvironment() &&
TC.getArch() == llvm::Triple::x86)
return "i386";
if (TC.getArch() == llvm::Triple::arm || TC.getArch() == llvm::Triple::armeb)
return "arm";
return TC.getArchName();