[cfe-dev] Building clang-extra-tools in visual studio
Aaron Ballman via cfe-dev
cfe-dev at lists.llvm.org
Mon Sep 14 06:00:25 PDT 2015
On Mon, Sep 14, 2015 at 8:01 AM, Paul Hoad via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> I'm sure I'm doing something wrong, but I cannot seem to get
> clang-extra-tools to generate vcxproj files for inclusion in the LLVM.sln
> without making the following change to CMakeList.txt in
> clang/tools/extra/tools
>
> Is there some sort of option I should be passing to CMake to get the extra
> tools generated?
Where in the source tree did you check that project out? For me, I put
it under llvm/tools/clang/tools/, name it extra, and then run CMake as
normal. I don't pass any extra flags, and it generates a solution
file.
~Aaron
>
> I'm currently using the following command to generate the sln/vcxproj files
>
> cmake -DCLANG_ENABLE_STATIC_ANALYZER=ON -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -G
> "Visual Studio 12" ..\llvm
>
> Paul
>
> Index: CMakeLists.txt
> ===================================================================
> --- CMakeLists.txt (revision 247539)
> +++ CMakeLists.txt (working copy)
> @@ -21,4 +21,5 @@
> # on top of the Clang tooling platform. We keep them in a separate
> repository
> # to keep the primary Clang repository small and focused.
> # It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
> -add_llvm_external_project(clang-tools-extra extra)
> +#add_llvm_external_project(clang-tools-extra extra)
> +add_subdirectory(extra)
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list