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
diff --git a/cc/linker.go b/cc/linker.go
index d9da404..cde7a6d 100644
--- a/cc/linker.go
+++ b/cc/linker.go
@@ -205,6 +205,11 @@
}
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)
}