Use LLD for Darwin host binaries

Test: m adb
Bug: 236924555
Change-Id: I4c793eb93af37fd7fe16991d20fcfcc5001c5d18
This commit is contained in:
Yi Kong
2022-06-24 21:16:18 +08:00
parent cf57a641ba
commit c3977fa99b

View File

@@ -436,11 +436,6 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
}
func (linker *baseLinker) useClangLld(ctx ModuleContext) bool {
// Clang lld is not ready for for Darwin host executables yet.
// See https://lld.llvm.org/AtomLLD.html for status of lld for Mach-O.
if ctx.Darwin() {
return false
}
if linker.Properties.Use_clang_lld != nil {
return Bool(linker.Properties.Use_clang_lld)
}