forked from OSchip/llvm-project
[mips] Do not add arch name in the compiler-rt's components.
Instead, use the constant "mips" since the libraries are already placed under the multilib's OS suffix. llvm-svn: 253214
This commit is contained in:
parent
642e5f9fea
commit
bbc9930a34
|
@ -2517,8 +2517,7 @@ std::string MipsLLVMToolChain::getCompilerRT(const ArgList &Args,
|
|||
llvm::sys::path::append(Path, SelectedMultilib.osSuffix(), "lib" + LibSuffix,
|
||||
getOS());
|
||||
llvm::sys::path::append(Path, Twine("libclang_rt." + Component + "-" +
|
||||
getTriple().getArchName() +
|
||||
(Shared ? ".so" : ".a")));
|
||||
"mips" + (Shared ? ".so" : ".a")));
|
||||
return Path.str();
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,6 @@
|
|||
// CHECK-LE-HF-32R2-SAME: "[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib{{/|\\\\}}crt1.o"
|
||||
// CHECK-LE-HF-32R2-SAME: "[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib{{/|\\\\}}crti.o"
|
||||
// CHECK-LE-HF-32R2-SAME: "-L[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib"
|
||||
// CHECK-LE-HF-32R2-SAME: "{{[^"]+}}/mipsel-r2-hard-musl{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.builtins-mipsel.a"
|
||||
// CHECK-LE-HF-32R2-SAME: "{{[^"]+}}/mipsel-r2-hard-musl{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.builtins-mips.a"
|
||||
// CHECK-LE-HF-32R2-SAME: "-lc"
|
||||
// CHECK-LE-HF-32R2-SAME: "[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
|
Loading…
Reference in New Issue