* Current default is not using lld. * When USE_CLANG_LLD or LOCAL_USE_CLANG_LLD is true or 1, * Use *GLOBAL_LLDFLAGS instead of *GLOBAL_LDFLAGS. GLOBAL_LLDFLAGS should call lld and with correct lld flags. * set my_pack_module_relocations to false. Bug: 73768157 Test: make checkbuild Change-Id: I3e63cf8ae0865d01d2bc1f36e9304f4a5d092cb8
15 lines
583 B
Makefile
15 lines
583 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
|