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 add_llvm_tool_subdirectory(opt)
12 add_llvm_tool_subdirectory(llvm-as)
13 add_llvm_tool_subdirectory(llvm-dis)
14 add_llvm_tool_subdirectory(llvm-mc)
16 add_llvm_tool_subdirectory(llc)
17 add_llvm_tool_subdirectory(llvm-ar)
18 add_llvm_tool_subdirectory(llvm-nm)
19 add_llvm_tool_subdirectory(llvm-size)
21 add_llvm_tool_subdirectory(llvm-cov)
22 add_llvm_tool_subdirectory(llvm-profdata)
23 add_llvm_tool_subdirectory(llvm-link)
24 add_llvm_tool_subdirectory(lli)
26 add_llvm_tool_subdirectory(llvm-extract)
27 add_llvm_tool_subdirectory(llvm-diff)
28 add_llvm_tool_subdirectory(macho-dump)
29 add_llvm_tool_subdirectory(llvm-objdump)
30 add_llvm_tool_subdirectory(llvm-readobj)
31 add_llvm_tool_subdirectory(llvm-rtdyld)
32 add_llvm_tool_subdirectory(llvm-dwarfdump)
33 add_llvm_tool_subdirectory(llvm-vtabledump)
34 if( LLVM_USE_INTEL_JITEVENTS )
35 add_llvm_tool_subdirectory(llvm-jitlistener)
37 ignore_llvm_tool_subdirectory(llvm-jitlistener)
38 endif( LLVM_USE_INTEL_JITEVENTS )
40 add_llvm_tool_subdirectory(bugpoint)
41 add_llvm_tool_subdirectory(bugpoint-passes)
42 add_llvm_tool_subdirectory(llvm-bcanalyzer)
43 add_llvm_tool_subdirectory(llvm-stress)
44 add_llvm_tool_subdirectory(llvm-mcmarkup)
46 add_llvm_tool_subdirectory(verify-uselistorder)
48 add_llvm_tool_subdirectory(llvm-symbolizer)
50 add_llvm_tool_subdirectory(llvm-c-test)
52 add_llvm_tool_subdirectory(obj2yaml)
53 add_llvm_tool_subdirectory(yaml2obj)
55 if(NOT CYGWIN AND LLVM_ENABLE_PIC)
56 add_llvm_tool_subdirectory(lto)
57 add_llvm_tool_subdirectory(llvm-lto)
59 ignore_llvm_tool_subdirectory(lto)
60 ignore_llvm_tool_subdirectory(llvm-lto)
64 # TODO: support other systems:
65 if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
66 OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
67 add_llvm_tool_subdirectory(gold)
69 ignore_llvm_tool_subdirectory(gold)
72 ignore_llvm_tool_subdirectory(gold)
75 add_llvm_external_project(clang)
77 if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )
78 add_llvm_external_project(lld)
79 add_llvm_external_project(lldb)
81 # Automatically add remaining sub-directories containing a 'CMakeLists.txt'
82 # file as external projects.
83 add_llvm_implicit_external_projects()
86 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)