Skip to content

Commit ac387e0

Browse files
committed
fix clang linker selection
1 parent 722b251 commit ac387e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD) const {
11491149
return std::string(UseLinker);
11501150
} else {
11511151
llvm::SmallString<8> LinkerName;
1152-
if (Triple.isOSDarwin())
1152+
if (Triple.isOSBinFormatMachO())
11531153
LinkerName.append("ld64.");
11541154
else
11551155
LinkerName.append("ld.");

0 commit comments

Comments
 (0)