summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-09-10 18:35:14 +0000
committerHans Wennborg <hans@hanshq.net>2013-09-10 18:35:14 +0000
commitbac9d13647b5a875f1a564703bca70ab59f49726 (patch)
tree592ab361bf8d942291d37c8d89cc52f0dcd03459
parent34b3dcc3b5e391e04276081bb5aecc42073d3e63 (diff)
downloadbcm5719-llvm-bac9d13647b5a875f1a564703bca70ab59f49726.tar.gz
bcm5719-llvm-bac9d13647b5a875f1a564703bca70ab59f49726.zip
cmake: Install llvm-tblgen again
It was removed in r189130, but it turns out this makes life hard for folks packaging LLVM and Clang and building the latter based on the LLVM package. Note that this only adds back the LLVM tblgen, and it's obviously not included when LLVM_INSTALL_TOOLCHAIN_ONLY is set. llvm-svn: 190419
-rw-r--r--llvm/cmake/modules/TableGen.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index d315a427c0c..bbd6339ac8c 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -136,4 +136,8 @@ macro(add_tablegen target project)
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
target_link_libraries(${target} pthread)
endif()
+
+ if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+ install(TARGETS ${target} RUNTIME DESTINATION bin)
+ endif()
endmacro()
OpenPOWER on IntegriCloud