[cfe-dev] LibTooling Tutorial directory paths

Ilya Biryukov via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 7 09:01:45 PDT 2019


Ah, yes, this changed as well after writing this documentation... You need
to pass '-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra'.
I'll update the docs accordingly.

On Fri, Jun 7, 2019 at 5:43 PM Phil King <phil_king at rocketmail.com> wrote:

> Thanks for the clarification.
>
> I've tried putting the files in ~/clang-llvm/clang-tool-extra/loop-convert
> and adding add_subdirectory(loop-convert) to
> ~/clang-llvm/clang-tool-extra/CMakeLists.txt.
>
> However, I think there must be something else I need to do as a "make"
> does not result in anything new being built!
>
> Do I need to pass -DLLVM_ENABLE_PROJECTS=<something> to cmake?
>
> Phil.
>
>
> On Thursday, 6 June 2019, 08:54:21 BST, Ilya Biryukov <
> ibiryukov at google.com> wrote:
>
>
> Hi Phil,
>
> Use ~/clang-llvm/clang instead of ~/clang-llvm/tools/clang, and put the
> new tool in ~/clang-llvm/clang-tools-extra instead of
> ~/clang-llvm/tools/clang/tools/extra.
> LLVM has two supported directory layouts and the tutorial was only
> partially updated to use the new monorepo layout.
>
> On Wed, Jun 5, 2019 at 4:26 PM Phil King via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
> I'm trying to work through the "Create a ClangTool" tutorial at
> https://clang.llvm.org/docs/LibASTMatchersTutorial.html
>
> The instructions include "cd ~/clang-llvm/llvm/tools/clang", but this
> directory does not exist within the tree that's generated from the previous
> stages. "~/clang-llvm/llvm/tools/" is there.
>
> Various other commands also depend on similar paths.
>
> Where should the loop-convert directory be placed?
>
> Thanks
>
> Phil.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
>
> --
> Regards,
> Ilya Biryukov
>


-- 
Regards,
Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190607/0da7fe07/attachment.html>


More information about the cfe-dev mailing list