[PATCH 2/2] Revert "CMake: don't install tablegen"

Reid Kleckner rnk at google.com
Fri Aug 30 11:47:40 PDT 2013


Please find a way to do this that doesn't install llvm-tblgen by default.
 We don't actually want to distribute it to end users.

I believe we have some solution for supporting out-of-source builds using
llvm-config, but Hans or Jordan Rose (I think he uses CMake+XCode out of
source?) might know more.


On Fri, Aug 30, 2013 at 11:14 AM, Johannes Obermayr <johannesobermayr at gmx.de
> wrote:

> This reverts commit b7f81d372a884453f821a3764028771c4896c3be.
> SVN: r189130
>
> Fixes (out-of-tree build):
> Scanning dependencies of target ClangCC1AsOptions
> make[2]: *** No rule to make target `/usr/bin/llvm-tblgen', needed by
> `include/clang/Driver/Options.inc.tmp'.  Stop.
> ---
>  cmake/modules/TableGen.cmake | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
> index d315a42..bf75ce2 100644
> --- a/cmake/modules/TableGen.cmake
> +++ b/cmake/modules/TableGen.cmake
> @@ -136,4 +136,6 @@ macro(add_tablegen target project)
>    if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
>      target_link_libraries(${target} pthread)
>    endif()
> +
> +  install(TARGETS ${target} RUNTIME DESTINATION bin)
>  endmacro()
> --
> 1.8.1.4
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130830/8d96e537/attachment.html>


More information about the llvm-commits mailing list