876a36e8ac
This reverts commit da8febf39c
.
Bug: http://b/73768157
Reason for revert: breaks several bionic/debuggerd/libunwind_stack gtests
Change-Id: I161cf85cf352b80644524fd4bb70ff7c75fbc1d0
22 lines
827 B
Makefile
22 lines
827 B
Makefile
#############################################################
|
|
## Set up flags based on USE_CLANG_LLD and LOCAL_USE_CLANG_LLD.
|
|
## Input variables: USE_CLANG_LLD,LOCAL_USE_CLANG_LLD.
|
|
## Output variables: my_use_clang_lld
|
|
#############################################################
|
|
|
|
# Use LLD only if it's not disabled by LOCAL_USE_CLANG_LLD,
|
|
# and enabled by LOCAL_USE_CLANG_LLD or USE_CLANG_LLD.
|
|
my_use_clang_lld := false
|
|
ifeq (,$(filter 0 false,$(LOCAL_USE_CLANG_LLD)))
|
|
ifneq (,$(filter 1 true,$(LOCAL_USE_CLANG_LLD) $(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
|