After Visual Studio toolset migration from v120 to 142, build stuck while calling Tracker.exe when using precompiled headers (/Yu)

Anthony Bruce 1 Reputation point
2021-04-12T22:53:38.71+00:00

After migrating the solution and its projects to the v142, while building the final project, the build gets stuck while executing a Tracker.exe instance. I see tracker.exe in the task manager and there doesn't seem to be any high CPU or memory usage anywhere on the PC. This is only happening in one solution configuration's debug and release builds that includes all the projects in the solution (while other solutions use different combinations of the projects). The PCH file around 245 MB.

If I don't use a precompiled header or use the Create option (/Yc), it will build and run like usual.

I already tried all the suggestions on this page: https://devblogs.microsoft.com/cppblog/precompiled-header-pch-issues-and-recommendations/

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,021 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-04-13T03:27:56.667+00:00

    Hi AnthonyBruce,

    You can try to follow these steps:

    1. Right click the precompiled-header.cpp file,
    2. Go to Properties page
    3. In C/C++ > Precompiled Header, set Precompiled Header to (/Yc)
      87220-image.png
    4. Keep (/Yu) for other cpp files
    5. Clean and Build the project

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.