forked from OSchip/llvm-project
Support -fuse-ld=lld for riscv
Differential Revision: https://reviews.llvm.org/D74704
This commit is contained in:
parent
58f66f8af0
commit
dd230142d8
|
@ -142,7 +142,7 @@ void RISCV::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("elf32lriscv");
|
||||
}
|
||||
|
||||
std::string Linker = getToolChain().GetProgramPath(getShortName());
|
||||
std::string Linker = getToolChain().GetLinkerPath();
|
||||
|
||||
bool WantCRTs =
|
||||
!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles);
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 2>&1 | FileCheck -check-prefix=CC1 %s
|
||||
// CC1: clang{{.*}} "-cc1" "-triple" "riscv32"
|
||||
|
||||
// Test interaction with -fuse-ld=lld
|
||||
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 -fuse-ld=lld 2>&1 | FileCheck -check-prefix=LLD %s
|
||||
// LLD: ld.lld
|
||||
|
||||
// In the below tests, --rtlib=platform is used so that the driver ignores
|
||||
// the configure-time CLANG_DEFAULT_RTLIB option when choosing the runtime lib
|
||||
|
||||
|
|
Loading…
Reference in New Issue