X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2FCMakeLists.txt;h=26d2dfde931a09573a8ac9b007a51be367edee63;hb=f6943689d2ac302e54087a180cf468b29aa8d938;hp=3b5a82d8a210d52fdd87fbc724d15765ab8a8af3;hpb=71926e73ba99c07a02671b9001197cedc06f8905;p=oota-llvm.git diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 3b5a82d8a21..26d2dfde931 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -8,6 +8,12 @@ else(WITH_POLLY) list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${LLVM_MAIN_SRC_DIR}/tools/polly") endif(WITH_POLLY) +if( LLVM_BUILD_LLVM_DYLIB ) + add_llvm_tool_subdirectory(llvm-shlib) +else() + ignore_llvm_tool_subdirectory(llvm-shlib) +endif() + add_llvm_tool_subdirectory(opt) add_llvm_tool_subdirectory(llvm-as) add_llvm_tool_subdirectory(llvm-dis) @@ -30,6 +36,7 @@ add_llvm_tool_subdirectory(llvm-objdump) add_llvm_tool_subdirectory(llvm-readobj) add_llvm_tool_subdirectory(llvm-rtdyld) add_llvm_tool_subdirectory(llvm-dwarfdump) +add_llvm_tool_subdirectory(dsymutil) add_llvm_tool_subdirectory(llvm-vtabledump) if( LLVM_USE_INTEL_JITEVENTS ) add_llvm_tool_subdirectory(llvm-jitlistener) @@ -54,6 +61,15 @@ add_llvm_tool_subdirectory(yaml2obj) add_llvm_tool_subdirectory(llvm-go) +if(MSVC AND NOT(MSVC_VERSION LESS 1800)) + # Certain aspects of llvm-pdbdump require language support only present in + # MSVC 2013 and higher. Since this is strictly a utility, and since we hope + # to drop support for MSVC 2012 soon, don't build this for MSVC < 2013. + add_llvm_tool_subdirectory(llvm-pdbdump) +else() + ignore_llvm_tool_subdirectory(llvm-pdbdump) +endif() + if(NOT CYGWIN AND LLVM_ENABLE_PIC) add_llvm_tool_subdirectory(lto) add_llvm_tool_subdirectory(llvm-lto) @@ -62,25 +78,10 @@ else() ignore_llvm_tool_subdirectory(llvm-lto) endif() -if( LLVM_ENABLE_PIC ) - # TODO: support other systems: - if( (CMAKE_SYSTEM_NAME STREQUAL "Linux") - OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) - add_llvm_tool_subdirectory(gold) - else() - ignore_llvm_tool_subdirectory(gold) - endif() -else() - ignore_llvm_tool_subdirectory(gold) -endif() - -if( LLVM_BUILD_LLVM_DYLIB ) - add_llvm_tool_subdirectory(llvm-shlib) -else() - ignore_llvm_tool_subdirectory(llvm-shlib) -endif() +add_llvm_tool_subdirectory(gold) add_llvm_external_project(clang) +add_llvm_external_project(llgo) if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" ) add_llvm_external_project(lld)