cotire icon indicating copy to clipboard operation
cotire copied to clipboard

MSVC: Broken single file build with a cleaned solution

Open Naios opened this issue 7 years ago • 0 comments

516d7847 (ref: TrinityCore/TrinityCore#21104)

Description:

Building a single .cpp file in Visual Studio 2017 after a Clean Solution results in a build error

1>------ Build started: Project: game, Configuration: Debug x64 ------ 1>CreatureAI.cpp 1>c1xx : fatal error C1083: Cannot open compiler intermediate file: 'D:\wow\TrinityCore\win\src\server\game\Debug\cotire\game_CXX_prefix.pch': No such file or directory 1>Done building project "game.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Steps to reproduce the problem:

  1. Clean Solution in VS 2017
  2. Open any .cpp file contained in a cotirized project
  3. Choose Build > Compile or press Ctrl + F7

It seems like the single source files don't have the PCH project set as dependency.

Naios avatar Jan 25 '18 21:01 Naios