Arik-Playground / LlvmForVS2017

props & target files so you could use clang with vs2017 standard library
MIT License
16 stars 3 forks source link

unnecessary recompilation #2

Closed twiggler closed 6 years ago

twiggler commented 6 years ago

Hey, Did you also experience clang recompiling all translation units on every build, even when only a few are outdated? If so, did you find a resolution?

Trass3r commented 6 years ago

I also noticed that.

hia3 commented 6 years ago

There are many reasons why this might happen, but most probably it is because msbuild implies program database file to be $(IntDir)vc$(PlatformToolsetVersion).pdb (for example, Debug\vc141.pdb).

But when compiling with LLVM toolset, for some reason, something that looks more like $(OutDir)$(ProjectName).pdb gets generated.

Try setting pdb path as on this picture: image

If this will not help, it is easy to debug it with procmon.

Trass3r commented 6 years ago

Indeed Forcing recompile of all source files due to missing PDB "obj/v141/x64/Release/vc141.pdb"