[cfe-users] question about building

Duncan P. N. Exon Smith via cfe-users cfe-users at lists.llvm.org
Mon Apr 17 09:06:16 PDT 2017


+cfe-dev; bcc:cfe-users (this is more of a development question than a user question, AFAICT)

> On Apr 17, 2017, at 08:18, Michael Mitchell via cfe-users <cfe-users at lists.llvm.org> wrote:
> 
> I'm new to LLVM and also new to Cmake. I've checked out multiple LLVM projects including clang  (see below for list of projects checked out).  I made the build directory. 
> 
> My question has three possible answers - A,B, or C, but if the answer is neither of those 3 can you please describe in detail what the correct answer is. 
> 
> My question is this,  "Can I run cmake (A) with the path ONLY to the root of the LLVM project to build ALL of the projects I checked out,

This should work, since you checked everything out inside of the LLVM checkout.

> or (B) do I have to supply the path to the root of all the projects I checked out to cmake at once, or (C) do I run cmake multiple times in succession with a new path each time to the respective project I am building"
> 
> Thank you in advance
> 
> 
> 
> #. Checkout LLVM:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``svn co http://llvm.org/svn/llvm-project/llvm/trunk <http://llvm.org/svn/llvm-project/llvm/trunk> llvm``
> 
> #. Checkout Clang:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/tools``
>    * ``svn co http://llvm.org/svn/llvm-project/cfe/trunk <http://llvm.org/svn/llvm-project/cfe/trunk> clang``
> 
> #. Checkout LLD linker **[Optional]**:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/tools``
>    * ``svn co http://llvm.org/svn/llvm-project/lld/trunk <http://llvm.org/svn/llvm-project/lld/trunk> lld``
> 
> #. Checkout Polly Loop Optimizer **[Optional]**:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/tools``
>    * ``svn co http://llvm.org/svn/llvm-project/polly/trunk <http://llvm.org/svn/llvm-project/polly/trunk> polly``
> 
> #. Checkout Compiler-RT (required to build the sanitizers) **[Optional]**:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/projects``
>    * ``svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk <http://llvm.org/svn/llvm-project/compiler-rt/trunk> compiler-rt``
> 
> #. Checkout Libomp (required for OpenMP support) **[Optional]**:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/projects``
>    * ``svn co http://llvm.org/svn/llvm-project/openmp/trunk <http://llvm.org/svn/llvm-project/openmp/trunk> openmp``
> 
> #. Checkout libcxx and libcxxabi **[Optional]**:
> 
>    * ``cd where-you-want-llvm-to-live``
>    * ``cd llvm/projects``
>    * ``svn co http://llvm.org/svn/llvm-project/libcxx/trunk <http://llvm.org/svn/llvm-project/libcxx/trunk> libcxx``
>    * ``svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk <http://llvm.org/svn/llvm-project/libcxxabi/trunk> libcxxabi``
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20170417/2faf4695/attachment.html>


More information about the cfe-users mailing list