blob: d26c7058ba440dc062a09d2bcdae30280fe5b4db [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001LOCAL_PATH := $(call my-dir)
2CLANG_ROOT_PATH := $(LOCAL_PATH)
David Gross16f34832015-06-12 14:28:01 -07003
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -07004.PHONY: clang-toolchain-minimal clang-toolchain-full llvm-tools
5clang-toolchain-minimal: \
6 clang
7
8clang-toolchain-full: \
9 clang-toolchain-minimal \
10 asan_test \
11 clang-check \
12 clang-format \
13 clang-tidy \
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080014 FileCheck \
15 llvm-as \
16 llvm-dis \
17 llvm-link \
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070018 llvm-symbolizer \
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080019 LLVMgold \
20 libprofile_rt
21
22llvm-tools: \
23 bugpoint \
24 BugpointPasses \
25 count \
26 llc \
27 lli \
28 lli-child-target \
29 LLVMHello \
30 llvm-ar \
31 llvm-as \
32 llvm-bcanalyzer \
33 llvm-config \
34 llvm-cov \
35 llvm-c-test \
36 llvm-cxxdump \
37 llvm-diff \
38 llvm-dis \
39 llvm-dsymutil \
40 llvm-dwarfdump \
41 llvm-dwp \
42 llvm-extract \
43 llvm-link \
44 llvm-lto \
45 llvm-mc \
46 llvm-mcmarkup \
47 llvm-nm \
48 llvm-objdump \
49 llvm-pdbdump \
50 llvm-profdata \
51 llvm-readobj \
52 llvm-rtdyld \
53 llvm-size \
54 llvm-split \
55 llvm-symbolizer \
56 not \
57 obj2yaml \
58 opt \
59 sancov \
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070060 sanstats \
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080061 verify-uselistorder \
62 yaml2obj \
63 yaml-bench
64
65ifneq ($(HOST_OS),darwin)
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070066clang-toolchain-minimal: \
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080067 libasan \
68 libasan_32 \
69 libasan_cxx \
70 libasan_cxx_32 \
71 libprofile_rt_32 \
72 libtsan \
73 libtsan_cxx \
74 libubsan_standalone \
75 libubsan_standalone_32 \
76 libubsan_standalone_cxx \
77 libubsan_standalone_cxx_32
78
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070079clang-toolchain-full: \
80 host_cross_clang \
81 host_cross_clang_64 \
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080082
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070083# Build libomp on Linux host. Build modules for the host and some specific
84# targets.
85clang-toolchain-full: libomp
86ifneq (,$(filter arm arm64 x86 x86_64,$(TARGET_ARCH)))
87clang-toolchain-full: libomp-$(TARGET_ARCH)
88endif # ifneq (,$(filter arm arm64 x86 x86_64,$(TARGET_ARCH)))
89
90endif # ifneq ($(HOST_OS),darwin)
91
92ifneq (,$(filter arm arm64 x86 mips mips64,$(TARGET_ARCH)))
93clang-toolchain-minimal: \
94 $(ADDRESS_SANITIZER_RUNTIME_LIBRARY) \
95 $(UBSAN_RUNTIME_LIBRARY)
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -080096
97endif