zufuliu / llvm-utils

LLVM/Clang toolsets for Visual Studio 2022, 2019, 2017, 2015, 2013, 2012 and 2010.
Other
206 stars 35 forks source link

Generated solution does not recompile modified files #4

Closed jpursey closed 3 years ago

jpursey commented 3 years ago

Manually recompiling a source file, will trigger the linker to pick up the new .obj and build the .exe, but changing the source file and building does not regenerate the obj.

I am using:

zufuliu commented 3 years ago

This is a limitation for Clang, you will need to rebuild whole project. see https://bugs.llvm.org/show_bug.cgi?id=37187

jpursey commented 3 years ago

Ok, I will follow progress over there (although it does not seem to be a priority from the age of the thread). Visual Studio's own CMake support with clang does not seem to have this problem (perhaps because the build itself seems to be driven by Ninja).

zufuliu commented 3 years ago

You can also use this toolchain in CMake, see issue #2. The problem for project files seems because clang only implemented old style PDB file, see comments at https://github.com/zufuliu/llvm-utils/blob/master/VS2017/LLVM/LLVM.Common.targets#L109