projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6096f54
)
[CMake] Allow TableGen.cmake to be included multiple times
author
Chris Bieneman
<beanz@apple.com>
Tue, 25 Jul 2017 20:53:31 +0000
(20:53 +0000)
committer
Chris Bieneman
<beanz@apple.com>
Tue, 25 Jul 2017 20:53:31 +0000
(20:53 +0000)
This patch allows TableGen.cmake to be safely included multiple times in sub-projects.
llvm-svn: 309029
llvm/cmake/modules/TableGen.cmake
patch
|
blob
|
history
diff --git
a/llvm/cmake/modules/TableGen.cmake
b/llvm/cmake/modules/TableGen.cmake
index
8c3e2d7
..
8ee7f97
100644
(file)
--- 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)