1 # NOTE: The tools are organized into groups of four consisting of one large and
2 # three small executables. This is done to minimize memory load in parallel
3 # builds. Please retain this ordering.
5 if( NOT WIN32 OR MSYS OR CYGWIN )
6 # We currently require 'sed' to build llvm-config, so don't try to build it
8 add_subdirectory(llvm-config)
12 add_subdirectory(llvm-as)
13 add_subdirectory(llvm-dis)
14 add_subdirectory(llvm-mc)
17 add_subdirectory(llvm-ranlib)
18 add_subdirectory(llvm-ar)
19 add_subdirectory(llvm-nm)
20 add_subdirectory(llvm-size)
22 add_subdirectory(llvm-cov)
23 add_subdirectory(llvm-prof)
24 add_subdirectory(llvm-link)
27 add_subdirectory(llvm-extract)
28 add_subdirectory(llvm-diff)
29 add_subdirectory(macho-dump)
30 add_subdirectory(llvm-objdump)
31 add_subdirectory(llvm-readobj)
32 add_subdirectory(llvm-rtdyld)
33 add_subdirectory(llvm-dwarfdump)
34 if( LLVM_USE_INTEL_JITEVENTS )
35 add_subdirectory(llvm-jitlistener)
36 endif( LLVM_USE_INTEL_JITEVENTS )
38 add_subdirectory(bugpoint)
39 add_subdirectory(bugpoint-passes)
40 add_subdirectory(llvm-bcanalyzer)
41 add_subdirectory(llvm-stress)
42 add_subdirectory(llvm-mcmarkup)
44 add_subdirectory(llvm-symbolizer)
51 # TODO: support other systems:
52 if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
53 add_subdirectory(gold)
57 add_llvm_external_project(clang)
58 add_llvm_external_project(lld)
59 add_llvm_external_project(lldb)
60 add_llvm_external_project(polly)
62 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)