Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3977fa9 authored by Yi Kong's avatar Yi Kong
Browse files

Use LLD for Darwin host binaries

Test: m adb
Bug: 236924555
Change-Id: I4c793eb93af37fd7fe16991d20fcfcc5001c5d18
parent cf57a641
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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)
	}