diff --git a/cc/linker.go b/cc/linker.go index d9da404ad..cde7a6dd0 100644 --- a/cc/linker.go +++ b/cc/linker.go @@ -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) }