Closed jpursey closed 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
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).
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
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: