Merge "Disable LLD for Darwin host executables."

am: 95ba30aa56

Change-Id: I1082ff2ef6e7db2a1292c55d8bdbea0fc651430f
This commit is contained in:
Chih-hung Hsieh 2018-04-24 23:38:21 -07:00 committed by android-build-merger
commit 74db54674a

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)
}