diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-04-24 16:00:01 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-04-24 18:07:16 -0700 |
commit | e5ac6093555a03d5cc911e2bb181ee085ffee255 (patch) | |
tree | 263a723e1510c765ef7cb60699273bea3d6b9004 /cc/linker.go | |
parent | 9850f48dda094f2b508d7798c910dedfe447c331 (diff) | |
download | build_soong-e5ac6093555a03d5cc911e2bb181ee085ffee255.tar.gz build_soong-e5ac6093555a03d5cc911e2bb181ee085ffee255.tar.bz2 build_soong-e5ac6093555a03d5cc911e2bb181ee085ffee255.zip |
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
Diffstat (limited to 'cc/linker.go')
-rw-r--r-- | cc/linker.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/linker.go b/cc/linker.go index d9da404a..cde7a6dd 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) } |