1LOCAL_PATH := $(call my-dir) 2CLANG_ROOT_PATH := $(LOCAL_PATH) 3 4.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 \ 14 FileCheck \ 15 llvm-as \ 16 llvm-dis \ 17 llvm-link \ 18 llvm-symbolizer \ 19 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 \ 60 sanstats \ 61 verify-uselistorder \ 62 yaml2obj \ 63 yaml-bench 64 65ifneq ($(HOST_OS),darwin) 66clang-toolchain-minimal: \ 67 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 79clang-toolchain-full: \ 80 host_cross_clang \ 81 host_cross_clang_64 \ 82 83# 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) 96 97endif 98