[cfe-dev] Visual Studio project for clang has no sources
Aaron Ballman via cfe-dev
cfe-dev at lists.llvm.org
Wed Feb 26 05:59:15 PST 2020
On Wed, Feb 26, 2020 at 8:38 AM Chris Tetreault via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
>
> Hi,
>
> I'm working on LLVM on Windows using the MSVC CMake generator. Most of my time is spent in LLVM itself, which works fine. Each library has a source, headers, and tablegen directory (if there are tablegen files). However, in the Clang libraries, I only have "Object Libraries", and I can't access any headers or cpp files from visual studio.
>
> I'm wondering if anybody has encountered this issue before and knows how I might work around it.
I use MSVC to open the LLVM folder as a cmake project (so I don't
execute cmake with the MSVC generator and open a solution from there),
and I get similarly bad behavior (all the LLVM components show up fine
in the solution explorer, but none of the other projects are there).
As best I can tell, Visual Studio doesn't handle the monorepo layout
nearly as well as it handled the previous directory layout and I've
not found a way to improve the situation. It's frustrating, so if
others have ideas on how to make Clang development on Windows at least
as good as it was before the git transition, that would be
appreciated. FWIW, my CMake configuration settings are:
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_IDE=ON
-DLLVM_OPTIMIZED_TABLEGEN=ON
~Aaron
More information about the cfe-dev
mailing list