Skip to content

Commit fad99d3

Browse files
committed
[clang][Driver] Fix a spot in commit 169f60f
My previous commit leads to a failure in 'Builders/ppc64le-lld-multistage-test', as shown at "https://lab.llvm.org/buildbot/#/builders/36/builds/38790".
1 parent 88dd981 commit fad99d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/AVR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA,
556556

557557
// Add avr-libc's linker script to lld by default, if it exists.
558558
if (!Args.hasArg(options::OPT_T) &&
559-
Linker.find("lld") != std::string::npos) {
559+
Linker.find("avr-ld") == std::string::npos) {
560560
std::string Path(*AVRLibcRoot + "/lib/ldscripts/");
561561
Path += *FamilyName;
562562
Path += ".x";

0 commit comments

Comments
 (0)