[cfe-dev] Visual Studio project for clang has no sources
Michael Kruse via cfe-dev
cfe-dev at lists.llvm.org
Wed Feb 26 10:08:00 PST 2020
Am Mi., 26. Feb. 2020 um 07:38 Uhr schrieb Chris Tetreault via cfe-dev
<cfe-dev at lists.llvm.org>:
> 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.
Clang's CMakeLists.txt uses object libraries to only compile each cpp
file once and link the object files into both, a static and dynamic
library (don't know why LLVM doesn't do the same thing). As a result,
the clangXYZ libraries only contain the object files to be linked, but
are compiled by a separate "obj.clangXYZ" target. You find the object
library targets themselves in the "Object Libraries" folder (sibling
of "Clang libraries", "Clang executable", ...). If you expand these
projects, they do contain "Header Files" and "Source Files".
More information about the cfe-dev