]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/CMakeLists.txt
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / tools / CMakeLists.txt
CommitLineData
1a4d82fc
JJ
1add_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.
5if(WITH_POLLY)
6 add_llvm_external_project(polly)
7else(WITH_POLLY)
8 list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${LLVM_MAIN_SRC_DIR}/tools/polly")
9endif(WITH_POLLY)
10
85aaf69f
SL
11if( LLVM_BUILD_LLVM_DYLIB )
12 add_llvm_tool_subdirectory(llvm-shlib)
13else()
14 ignore_llvm_tool_subdirectory(llvm-shlib)
15endif()
16
1a4d82fc
JJ
17add_llvm_tool_subdirectory(opt)
18add_llvm_tool_subdirectory(llvm-as)
19add_llvm_tool_subdirectory(llvm-dis)
20add_llvm_tool_subdirectory(llvm-mc)
223e47cc 21
1a4d82fc
JJ
22add_llvm_tool_subdirectory(llc)
23add_llvm_tool_subdirectory(llvm-ar)
24add_llvm_tool_subdirectory(llvm-nm)
25add_llvm_tool_subdirectory(llvm-size)
26
27add_llvm_tool_subdirectory(llvm-cov)
28add_llvm_tool_subdirectory(llvm-profdata)
29add_llvm_tool_subdirectory(llvm-link)
30add_llvm_tool_subdirectory(lli)
31
32add_llvm_tool_subdirectory(llvm-extract)
33add_llvm_tool_subdirectory(llvm-diff)
34add_llvm_tool_subdirectory(macho-dump)
35add_llvm_tool_subdirectory(llvm-objdump)
36add_llvm_tool_subdirectory(llvm-readobj)
37add_llvm_tool_subdirectory(llvm-rtdyld)
38add_llvm_tool_subdirectory(llvm-dwarfdump)
85aaf69f 39add_llvm_tool_subdirectory(dsymutil)
1a4d82fc 40add_llvm_tool_subdirectory(llvm-vtabledump)
970d7e83 41if( LLVM_USE_INTEL_JITEVENTS )
1a4d82fc
JJ
42 add_llvm_tool_subdirectory(llvm-jitlistener)
43else()
44 ignore_llvm_tool_subdirectory(llvm-jitlistener)
970d7e83 45endif( LLVM_USE_INTEL_JITEVENTS )
223e47cc 46
1a4d82fc
JJ
47add_llvm_tool_subdirectory(bugpoint)
48add_llvm_tool_subdirectory(bugpoint-passes)
49add_llvm_tool_subdirectory(llvm-bcanalyzer)
50add_llvm_tool_subdirectory(llvm-stress)
51add_llvm_tool_subdirectory(llvm-mcmarkup)
52
53add_llvm_tool_subdirectory(verify-uselistorder)
970d7e83 54
1a4d82fc 55add_llvm_tool_subdirectory(llvm-symbolizer)
223e47cc 56
1a4d82fc
JJ
57add_llvm_tool_subdirectory(llvm-c-test)
58
59add_llvm_tool_subdirectory(obj2yaml)
60add_llvm_tool_subdirectory(yaml2obj)
61
85aaf69f
SL
62add_llvm_tool_subdirectory(llvm-go)
63
1a4d82fc
JJ
64if(NOT CYGWIN AND LLVM_ENABLE_PIC)
65 add_llvm_tool_subdirectory(lto)
66 add_llvm_tool_subdirectory(llvm-lto)
67else()
68 ignore_llvm_tool_subdirectory(lto)
69 ignore_llvm_tool_subdirectory(llvm-lto)
223e47cc
LB
70endif()
71
85aaf69f 72add_llvm_tool_subdirectory(gold)
223e47cc
LB
73
74add_llvm_external_project(clang)
85aaf69f 75add_llvm_external_project(llgo)
1a4d82fc
JJ
76
77if( 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()
84endif()
223e47cc
LB
85
86set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)