summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-07-25 20:53:31 +0000
committerChris Bieneman <beanz@apple.com>2017-07-25 20:53:31 +0000
commit019b5a03c6ac9b1e9d1f44c3e8ddb406bf9cf2bb (patch)
tree7623c34fc7190bab37fe3474f9fa09e9d16737c7
parent6096f542d19d7e85e837bcd1c6facd0ef49a0398 (diff)
downloadbcm5719-llvm-019b5a03c6ac9b1e9d1f44c3e8ddb406bf9cf2bb.tar.gz
bcm5719-llvm-019b5a03c6ac9b1e9d1f44c3e8ddb406bf9cf2bb.zip
[CMake] Allow TableGen.cmake to be included multiple times
This patch allows TableGen.cmake to be safely included multiple times in sub-projects. llvm-svn: 309029
-rw-r--r--llvm/cmake/modules/TableGen.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index 8c3e2d7d700..8ee7f970991 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -110,7 +110,7 @@ function(add_public_tablegen_target target)
set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
endfunction()
-if(LLVM_USE_HOST_TOOLS)
+if(LLVM_USE_HOST_TOOLS AND NOT TARGET NATIVE_LIB_LLVMTABLEGEN)
llvm_ExternalProject_BuildCmd(tblgen_build_cmd LLVMSupport
${LLVM_NATIVE_BUILD}
CONFIGURATION Release)
OpenPOWER on IntegriCloud