X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2FCMakeLists.txt;h=c1816c6bd5e98b04494066406fd793983b533e05;hb=adf01b3f18442ae8db6b8948e70d82d9df415119;hp=aad45c0ff4b62e38984f5826e0b09694e7cdb69e;hpb=75373ac0c3cd299cfb45514d5bc0bc0761233fdd;p=oota-llvm.git diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index aad45c0ff4b..c1816c6bd5e 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,6 +1,6 @@ -# NOTE: The tools are organized into five groups of four consisting of one -# large and three small executables. This is done to minimize memory load -# in parallel builds. Please retain this ordering. +# NOTE: The tools are organized into groups of four consisting of one large and +# three small executables. This is done to minimize memory load in parallel +# builds. Please retain this ordering. # If polly exists and is not disabled compile it and add it to the LLVM tools. option(LLVM_BUILD_POLLY "Compile polly" ON) @@ -37,16 +37,32 @@ add_subdirectory(lli) add_subdirectory(llvm-extract) add_subdirectory(llvm-diff) add_subdirectory(macho-dump) +add_subdirectory(llvm-objdump) +add_subdirectory(llvm-rtdyld) +add_subdirectory(llvm-dwarfdump) add_subdirectory(bugpoint) add_subdirectory(bugpoint-passes) add_subdirectory(llvm-bcanalyzer) add_subdirectory(llvm-stub) add_subdirectory(edis) -add_subdirectory(llvmc) + +if( NOT WIN32 ) + add_subdirectory(lto) +endif() + +if( LLVM_ENABLE_PIC ) + # TODO: support other systems: + if( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) + add_subdirectory(gold) + endif() +endif() if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) - add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang ) + option(LLVM_BUILD_CLANG "Whether to build Clang as part of LLVM" ON) + if (${LLVM_BUILD_CLANG}) + add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang ) + endif() endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)