[PR #2015] [CLOSED] Share PCH files between WinRT components to speed up builds #24769

Open
opened 2026-01-31 09:05:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2015
Author: @miniksa
Created: 7/17/2019
Status: Closed

Base: masterHead: dev/miniksa/shared_pch


📝 Commits (6)

  • 1c7aad8 try to move to shared pch
  • 769f6ac try to make app use it
  • 0006a5b revert app changes so it will build correctly.
  • b838123 Make WindowsTerminal project do it too.
  • 181de80 Add dependencies in SLN build order and runformat.
  • fa3c3ab Fix the fact that win32 builds don't put the objects in a folder... apparently.

📊 Changes

22 files changed (+297 additions, -165 deletions)

View changed files

📝 OpenConsole.sln (+29 -0)
msbuild.binlog (+0 -0)
msbuild2.binlog (+0 -0)
src/cascadia/SharedPch/SharedPch.props (+54 -0)
src/cascadia/SharedPch/SharedPch.vcxproj (+59 -0)
src/cascadia/SharedPch/packages.config (+6 -0)
📝 src/cascadia/SharedPch/pch.cpp (+0 -0)
src/cascadia/SharedPch/pch.h (+69 -0)
src/cascadia/SharedPch/pch.h-012e0c14 (+69 -0)
📝 src/cascadia/TerminalConnection/TerminalConnection.vcxproj (+5 -13)
📝 src/cascadia/TerminalConnection/TerminalConnection.vcxproj.filters (+2 -5)
src/cascadia/TerminalConnection/pch.h (+0 -16)
📝 src/cascadia/TerminalControl/TerminalControl.vcxproj (+1 -4)
src/cascadia/TerminalControl/pch.cpp (+0 -4)
src/cascadia/TerminalControl/pch.h (+0 -32)
📝 src/cascadia/TerminalSettings/TerminalSettings.vcxproj (+1 -4)
src/cascadia/TerminalSettings/pch.cpp (+0 -4)
src/cascadia/TerminalSettings/pch.h (+0 -22)
📝 src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj (+1 -4)
src/cascadia/WindowsTerminal/pch.cpp (+0 -4)

...and 2 more files

📄 Description

Summary of the Pull Request

Moves CppWinRT projects to use a shared PCH to speed up build time since they all require pretty much the same header things.

PR Checklist

Validation Steps Performed

Built it with msbuild, built it with VS2019. Now we'll try building with CI and hopefully confirm it's OK.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/2015 **Author:** [@miniksa](https://github.com/miniksa) **Created:** 7/17/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dev/miniksa/shared_pch` --- ### 📝 Commits (6) - [`1c7aad8`](https://github.com/microsoft/terminal/commit/1c7aad82a9454d7e651412acb3cca0ab8328c678) try to move to shared pch - [`769f6ac`](https://github.com/microsoft/terminal/commit/769f6aca8c83688fe0662cdafe42b6b5d11da1fc) try to make app use it - [`0006a5b`](https://github.com/microsoft/terminal/commit/0006a5b91bdc8e10511a8a6700b5e00b82b017d3) revert app changes so it will build correctly. - [`b838123`](https://github.com/microsoft/terminal/commit/b83812349a2597159c39561794dc77b23f95470b) Make WindowsTerminal project do it too. - [`181de80`](https://github.com/microsoft/terminal/commit/181de80515f329fea104498e1ed0bc7ec17628f6) Add dependencies in SLN build order and runformat. - [`fa3c3ab`](https://github.com/microsoft/terminal/commit/fa3c3abd294fd068261549e8da54d7a3e2c3ea39) Fix the fact that win32 builds don't put the objects in a folder... apparently. ### 📊 Changes **22 files changed** (+297 additions, -165 deletions) <details> <summary>View changed files</summary> 📝 `OpenConsole.sln` (+29 -0) ➕ `msbuild.binlog` (+0 -0) ➕ `msbuild2.binlog` (+0 -0) ➕ `src/cascadia/SharedPch/SharedPch.props` (+54 -0) ➕ `src/cascadia/SharedPch/SharedPch.vcxproj` (+59 -0) ➕ `src/cascadia/SharedPch/packages.config` (+6 -0) 📝 `src/cascadia/SharedPch/pch.cpp` (+0 -0) ➕ `src/cascadia/SharedPch/pch.h` (+69 -0) ➕ `src/cascadia/SharedPch/pch.h-012e0c14` (+69 -0) 📝 `src/cascadia/TerminalConnection/TerminalConnection.vcxproj` (+5 -13) 📝 `src/cascadia/TerminalConnection/TerminalConnection.vcxproj.filters` (+2 -5) ➖ `src/cascadia/TerminalConnection/pch.h` (+0 -16) 📝 `src/cascadia/TerminalControl/TerminalControl.vcxproj` (+1 -4) ➖ `src/cascadia/TerminalControl/pch.cpp` (+0 -4) ➖ `src/cascadia/TerminalControl/pch.h` (+0 -32) 📝 `src/cascadia/TerminalSettings/TerminalSettings.vcxproj` (+1 -4) ➖ `src/cascadia/TerminalSettings/pch.cpp` (+0 -4) ➖ `src/cascadia/TerminalSettings/pch.h` (+0 -22) 📝 `src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj` (+1 -4) ➖ `src/cascadia/WindowsTerminal/pch.cpp` (+0 -4) _...and 2 more files_ </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Moves CppWinRT projects to use a shared PCH to speed up build time since they all require pretty much the same header things. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #946 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [x] Requires documentation to be updated * [x] I've discussed this with core contributors already. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Built it with msbuild, built it with VS2019. Now we'll try building with CI and hopefully confirm it's OK. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:05:15 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24769