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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user