2018-04-13 01:55:54 +08:00
|
|
|
#############################################################
|
2018-10-22 10:46:36 +08:00
|
|
|
## Set up flags based on LOCAL_USE_CLANG_LLD.
|
|
|
|
## Input variables: LOCAL_USE_CLANG_LLD
|
2018-04-13 01:55:54 +08:00
|
|
|
## Output variables: my_use_clang_lld
|
|
|
|
#############################################################
|
|
|
|
|
2018-06-13 01:50:10 +08:00
|
|
|
# Use LLD by default.
|
2018-10-22 10:46:36 +08:00
|
|
|
# Do not use LLD if LOCAL_USE_CLANG_LLD is false or 0
|
2018-06-13 01:50:10 +08:00
|
|
|
my_use_clang_lld := true
|
|
|
|
ifneq (,$(LOCAL_USE_CLANG_LLD))
|
|
|
|
ifneq (,$(filter 0 false,$(LOCAL_USE_CLANG_LLD)))
|
|
|
|
my_use_clang_lld := false
|
|
|
|
endif
|
2018-04-13 01:55:54 +08:00
|
|
|
endif
|
2018-04-24 07:20:10 +08:00
|
|
|
|
2018-06-28 01:35:42 +08:00
|
|
|
# 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 ($($(my_prefix)OS),darwin)
|
|
|
|
my_use_clang_lld := false
|
|
|
|
endif
|