diff options
author | Reid Kleckner <rnk@google.com> | 2015-08-11 19:02:57 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-08-11 19:02:57 +0000 |
commit | 7752db61cc2c44d211223dde485be2f12fbef277 (patch) | |
tree | 2862480e6b51ab5aac7f1996fc75a1e69a9b8fcb | |
parent | c1cd8dd4de8e4fd713b5e8adc4df6bd8b65bf0c3 (diff) | |
download | bcm5719-llvm-7752db61cc2c44d211223dde485be2f12fbef277.tar.gz bcm5719-llvm-7752db61cc2c44d211223dde485be2f12fbef277.zip |
Revert "[cmake] Add helper for finding potentially external projects"
This reverts commit r244633.
We aren't going to be able to use it because the compiler-rt build can
be built standalone without an LLVM source dir *or* an installed copy of
LLVM.
llvm-svn: 244648
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index f4cb93ded59..f87e18bfcff 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -717,23 +717,6 @@ macro(add_llvm_tool_subdirectory name) add_llvm_external_project(${name}) endmacro(add_llvm_tool_subdirectory) -# Finds a (potentially external) project that normally lives at -# llvm/${subdir}/${name}. For example, to find clang: -# find_llvm_external_project(tools clang CLANG_SRC) -# Returns nothing if the project is not configured to build. -function(find_llvm_external_project subdir name path_out) - canonicalize_tool_name(${name} nameUPPER) - if (NOT LLVM_TOOL_${nameUPPER}_BUILD) - set(${path_out} PARENT_SCOPE) - elseif (EXISTS LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR) - set(${path_out} LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR PARENT_SCOPE) - elseif (EXISTS ${LLVM_MAIN_SRC_DIR}/${subdir}/${name}) - set(${path_out} ${LLVM_MAIN_SRC_DIR}/${subdir}/${name} PARENT_SCOPE) - else() - set(${path_out} PARENT_SCOPE) - endif() -endfunction(find_llvm_external_project) - function(get_project_name_from_src_var var output) string(REGEX MATCH "LLVM_EXTERNAL_(.*)_SOURCE_DIR" MACHED_TOOL "${var}") |