Disable LLD for Darwin host executables.

* See upstream status of lld for Mach-O at https://lld.llvm.org/AtomLLD.html

Bug: 73768157
Test: make checkbuild
Change-Id: I2e892193b6d75afd4358df8b2f674aa94888fb32
This commit is contained in:
Chih-Hung Hsieh
2018-04-24 16:00:01 -07:00
parent 9850f48dda
commit e5ac609355

View File

@@ -205,6 +205,11 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, 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)
}