Building clang-extra-tools in visual studio

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?

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

I’m afraid LLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD might be OFF.

I think it’d be a bug if you had to turn it ON when you configured from clean tree. Let me know state of your build tree.

Since add_llvm_external_project turns off LLVM_TOOL_EXTRA_BUILD after it add the extra directory, this might be a problem if you run cmake twice without removing the CMakeCache.txt file (or blowing away the entire build directory).

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