1 add_llvm_tool_subdirectory(llvm-config)
3 # Build polly before the tools: the tools link against polly when
4 # LINK_POLLY_INTO_TOOLS is set.
6 add_llvm_external_project(polly)
8 list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${LLVM_MAIN_SRC_DIR}/tools/polly")
11 if( LLVM_BUILD_LLVM_DYLIB )
12 add_llvm_tool_subdirectory(llvm-shlib)
14 ignore_llvm_tool_subdirectory(llvm-shlib)
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)
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)
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)
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)
39 add_llvm_tool_subdirectory(dsymutil)
40 add_llvm_tool_subdirectory(llvm-vtabledump)
41 if( LLVM_USE_INTEL_JITEVENTS )
42 add_llvm_tool_subdirectory(llvm-jitlistener)
44 ignore_llvm_tool_subdirectory(llvm-jitlistener)
45 endif( LLVM_USE_INTEL_JITEVENTS )
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)
53 add_llvm_tool_subdirectory(verify-uselistorder)
55 add_llvm_tool_subdirectory(llvm-symbolizer)
57 add_llvm_tool_subdirectory(llvm-c-test)
59 add_llvm_tool_subdirectory(obj2yaml)
60 add_llvm_tool_subdirectory(yaml2obj)
62 add_llvm_tool_subdirectory(llvm-go)
64 if(MSVC AND NOT(MSVC_VERSION LESS 1800))
65 # Certain aspects of llvm-pdbdump require language support only present in
66 # MSVC 2013 and higher. Since this is strictly a utility, and since we hope
67 # to drop support for MSVC 2012 soon, don't build this for MSVC < 2013.
68 add_llvm_tool_subdirectory(llvm-pdbdump)
70 ignore_llvm_tool_subdirectory(llvm-pdbdump)
73 if(NOT CYGWIN AND LLVM_ENABLE_PIC)
74 add_llvm_tool_subdirectory(lto)
75 add_llvm_tool_subdirectory(llvm-lto)
77 ignore_llvm_tool_subdirectory(lto)
78 ignore_llvm_tool_subdirectory(llvm-lto)
81 add_llvm_tool_subdirectory(gold)
83 add_llvm_external_project(clang)
84 add_llvm_external_project(llgo)
86 if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )
87 add_llvm_external_project(lld)
88 add_llvm_external_project(lldb)
90 # Automatically add remaining sub-directories containing a 'CMakeLists.txt'
91 # file as external projects.
92 add_llvm_implicit_external_projects()
95 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)