From 3365ae7228a0f41e5e76845f93720b0a94b6af1b Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 23 Apr 2018 16:20:10 -0700 Subject: [PATCH] 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: I20330bd59cc8b3d0ed0fa08d3f1c2be7b8656849 --- core/use_lld_setup.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/use_lld_setup.mk b/core/use_lld_setup.mk index 69ceddc53..17a9e2760 100644 --- a/core/use_lld_setup.mk +++ b/core/use_lld_setup.mk @@ -12,3 +12,11 @@ ifeq (,$(filter 0 false,$(LOCAL_USE_CLANG_LLD))) my_use_clang_lld := true endif endif + +# Do not use LLD for Darwin host executables or shared libraries. +# See https://lld.llvm.org/AtomLLD.html for status of lld for Mach-O. +ifeq ($(LOCAL_IS_HOST_MODULE),true) + ifeq ($(HOST_OS),darwin) + my_use_clang_lld := false + endif +endif