platform_build/core/use_lld_setup.mk
Dan Willemsen f264690860 Remove support for building Windows modules in Make
These now must be defined in Android.bp files.

Bug: 122618577
Test: compare build-aosp_arm.ninja before/after
Test: codesearch for LOCAL_MODULE_HOST_OS.*windows
Change-Id: I14451c7753299692940e026f85687b4c3331bb07
2019-02-05 00:19:41 -08:00

20 lines
680 B
Makefile

#############################################################
## Set up flags based on LOCAL_USE_CLANG_LLD.
## Input variables: LOCAL_USE_CLANG_LLD
## Output variables: my_use_clang_lld
#############################################################
# Use LLD by default.
# Do not use LLD if LOCAL_USE_CLANG_LLD is false or 0
my_use_clang_lld := true
ifneq (,$(LOCAL_USE_CLANG_LLD))
ifneq (,$(filter 0 false,$(LOCAL_USE_CLANG_LLD)))
my_use_clang_lld := false
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 ($($(my_prefix)OS),darwin)
my_use_clang_lld := false
endif