]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | add_llvm_tool_subdirectory(llvm-config) |
2 | ||
3 | # Build polly before the tools: the tools link against polly when | |
4 | # LINK_POLLY_INTO_TOOLS is set. | |
5 | if(WITH_POLLY) | |
6 | add_llvm_external_project(polly) | |
7 | else(WITH_POLLY) | |
8 | list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${LLVM_MAIN_SRC_DIR}/tools/polly") | |
9 | endif(WITH_POLLY) | |
10 | ||
85aaf69f SL |
11 | if( LLVM_BUILD_LLVM_DYLIB ) |
12 | add_llvm_tool_subdirectory(llvm-shlib) | |
13 | else() | |
14 | ignore_llvm_tool_subdirectory(llvm-shlib) | |
15 | endif() | |
16 | ||
1a4d82fc JJ |
17 | add_llvm_tool_subdirectory(opt) |
18 | add_llvm_tool_subdirectory(llvm-as) | |
19 | add_llvm_tool_subdirectory(llvm-dis) | |
20 | add_llvm_tool_subdirectory(llvm-mc) | |
223e47cc | 21 | |
1a4d82fc JJ |
22 | add_llvm_tool_subdirectory(llc) |
23 | add_llvm_tool_subdirectory(llvm-ar) | |
24 | add_llvm_tool_subdirectory(llvm-nm) | |
25 | add_llvm_tool_subdirectory(llvm-size) | |
26 | ||
27 | add_llvm_tool_subdirectory(llvm-cov) | |
28 | add_llvm_tool_subdirectory(llvm-profdata) | |
29 | add_llvm_tool_subdirectory(llvm-link) | |
30 | add_llvm_tool_subdirectory(lli) | |
31 | ||
32 | add_llvm_tool_subdirectory(llvm-extract) | |
33 | add_llvm_tool_subdirectory(llvm-diff) | |
34 | add_llvm_tool_subdirectory(macho-dump) | |
35 | add_llvm_tool_subdirectory(llvm-objdump) | |
36 | add_llvm_tool_subdirectory(llvm-readobj) | |
37 | add_llvm_tool_subdirectory(llvm-rtdyld) | |
38 | add_llvm_tool_subdirectory(llvm-dwarfdump) | |
85aaf69f | 39 | add_llvm_tool_subdirectory(dsymutil) |
1a4d82fc | 40 | add_llvm_tool_subdirectory(llvm-vtabledump) |
970d7e83 | 41 | if( LLVM_USE_INTEL_JITEVENTS ) |
1a4d82fc JJ |
42 | add_llvm_tool_subdirectory(llvm-jitlistener) |
43 | else() | |
44 | ignore_llvm_tool_subdirectory(llvm-jitlistener) | |
970d7e83 | 45 | endif( LLVM_USE_INTEL_JITEVENTS ) |
223e47cc | 46 | |
1a4d82fc JJ |
47 | add_llvm_tool_subdirectory(bugpoint) |
48 | add_llvm_tool_subdirectory(bugpoint-passes) | |
49 | add_llvm_tool_subdirectory(llvm-bcanalyzer) | |
50 | add_llvm_tool_subdirectory(llvm-stress) | |
51 | add_llvm_tool_subdirectory(llvm-mcmarkup) | |
52 | ||
53 | add_llvm_tool_subdirectory(verify-uselistorder) | |
970d7e83 | 54 | |
1a4d82fc | 55 | add_llvm_tool_subdirectory(llvm-symbolizer) |
223e47cc | 56 | |
1a4d82fc JJ |
57 | add_llvm_tool_subdirectory(llvm-c-test) |
58 | ||
59 | add_llvm_tool_subdirectory(obj2yaml) | |
60 | add_llvm_tool_subdirectory(yaml2obj) | |
61 | ||
85aaf69f SL |
62 | add_llvm_tool_subdirectory(llvm-go) |
63 | ||
1a4d82fc JJ |
64 | if(NOT CYGWIN AND LLVM_ENABLE_PIC) |
65 | add_llvm_tool_subdirectory(lto) | |
66 | add_llvm_tool_subdirectory(llvm-lto) | |
67 | else() | |
68 | ignore_llvm_tool_subdirectory(lto) | |
69 | ignore_llvm_tool_subdirectory(llvm-lto) | |
223e47cc LB |
70 | endif() |
71 | ||
85aaf69f | 72 | add_llvm_tool_subdirectory(gold) |
223e47cc LB |
73 | |
74 | add_llvm_external_project(clang) | |
85aaf69f | 75 | add_llvm_external_project(llgo) |
1a4d82fc JJ |
76 | |
77 | if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" ) | |
78 | add_llvm_external_project(lld) | |
79 | add_llvm_external_project(lldb) | |
80 | ||
81 | # Automatically add remaining sub-directories containing a 'CMakeLists.txt' | |
82 | # file as external projects. | |
83 | add_llvm_implicit_external_projects() | |
84 | endif() | |
223e47cc LB |
85 | |
86 | set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE) |