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. 4 5 if( NOT WIN32 OR MSYS OR CYGWIN ) 6 # We currently require 'sed' to build llvm-config, so don't try to build it 7 # on pure Win32. 8 add_subdirectory(llvm-config) 9 endif() 10 11 add_subdirectory(opt) 12 add_subdirectory(llvm-as) 13 add_subdirectory(llvm-dis) 14 add_subdirectory(llvm-mc) 15 16 add_subdirectory(llc) 17 add_subdirectory(llvm-ranlib) 18 add_subdirectory(llvm-ar) 19 add_subdirectory(llvm-nm) 20 add_subdirectory(llvm-size) 21 22 add_subdirectory(llvm-cov) 23 add_subdirectory(llvm-prof) 24 add_subdirectory(llvm-link) 25 add_subdirectory(lli) 26 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 35 add_subdirectory(bugpoint) 36 add_subdirectory(bugpoint-passes) 37 add_subdirectory(llvm-bcanalyzer) 38 add_subdirectory(llvm-stress) 39 40 if( NOT WIN32 ) 41 add_subdirectory(lto) 42 endif() 43 44 if( LLVM_ENABLE_PIC ) 45 # TODO: support other systems: 46 if( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) 47 add_subdirectory(gold) 48 endif() 49 endif() 50 51 add_llvm_external_project(clang) 52 add_llvm_external_project(lld) 53 add_llvm_external_project(polly) 54 55 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE) 56