File: use_lld_setup.mk

package info (click to toggle)
android-platform-build 1%3A10.0.0%2Br36-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,608 kB
  • sloc: python: 19,710; javascript: 6,836; makefile: 3,839; cpp: 3,384; cs: 3,339; sh: 2,058; java: 1,487; ansic: 791; xml: 84
file content (20 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#############################################################
## 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