1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-25 06:00:55 +00:00
openmw/apps
AnyOldName3 e68d4317c4 Get rid of unique PCHs from targets with three or fewer translation units
Precompiled headers avoid duplicate work.
If you've only got a single TU using a particular PCH, then there's no duplicate work, so it can only add overhead.

We don't need to totally abandon PCHs for these targets, though, as CMake lets us reuse the PCH from components.

If you've only got a few TUs in a target, it's *probably* faster to get components' PCH for free and eat the cost of it not being perfect than it is to make a perfect PCH from scratch.

Note that I don't know if there are drawbacks due to components having a couple of private precompiled headers that wouldn't have otherwise propagated or these targets having different build flags.
I can't test it locally right now as my linker's regained the deadlocking issue it had the other day.
If it turns out there are problems, then for the single-TU targets, simply avoiding using PCHs for them at all will still be an improvement over the status quo.
For the two-or-three TU targets, we'll have to actually measure things.
2026-01-15 17:44:32 +00:00
..
benchmarks Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
bsatool Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
bulletobjecttool Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
components_tests Merge branch 'recindex' into 'master' 2025-12-24 20:31:05 +00:00
esmtool Print angles in degrees in esmtool 2025-12-21 15:21:22 +03:00
essimporter
launcher
mwiniimporter Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
navmeshtool Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
niftest Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
opencs Merge branch 'dialoguefilters' into 'master' 2025-12-19 04:33:39 +03:00
opencs_tests Get rid of unique PCHs from targets with three or fewer translation units 2026-01-15 17:44:32 +00:00
openmw Merge branch 'splitting-headache' into 'master' 2026-01-01 18:43:16 +03:00
openmw_tests
wizard
doc.hpp