Add USE_CLANG_LLD and LOCAL_USE_CLANG_LLD
* 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
This commit is contained in:
@@ -67,6 +67,11 @@ ifneq ($(HOST_OS),linux)
|
||||
my_pack_module_relocations := false
|
||||
endif
|
||||
|
||||
# Relocation packer does not work with LLD yet.
|
||||
ifeq ($(my_use_clang_lld),true)
|
||||
my_pack_module_relocations := false
|
||||
endif
|
||||
|
||||
ifeq (true,$(my_pack_module_relocations))
|
||||
# Pack relocations
|
||||
$(relocation_packer_output): $(relocation_packer_input)
|
||||
|
Reference in New Issue
Block a user