Skip to content

Drop precompiled-headers.h#13290

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:drop-pch
May 28, 2025
Merged

Drop precompiled-headers.h#13290
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:drop-pch

Conversation

@xokdvium
Copy link
Contributor

Motivation

Since the migration to meson precompiled-headers.h isn't actually used anymore and is just confusing. Meson can't handle shared pch across subprojects 1 and without that there's no performances benefit of PCH at all. Also rolling our own support for that isn't trivial. See 2 for an example of how that would look like.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Since the migration to meson precompiled-headers.h isn't actually used
anymore and is just confusing. Meson can't handle shared pch across
subprojects [1] and without that there's no performances benefit of PCH
at all. Also rolling our own support for that isn't trivial. See [2] for
an example of how that would look like.

[1]: mesonbuild/meson#4350
[2]: https://github.com/WayfireWM/wayfire/blob/22bc8b647351c45829baac570b828c8f852111dc/plugins/meson.build
@xokdvium xokdvium requested a review from edolstra as a code owner May 28, 2025 21:52
@Ericson2314 Ericson2314 merged commit ba96067 into NixOS:master May 28, 2025
12 checks passed
@xokdvium xokdvium deleted the drop-pch branch May 28, 2025 23:46
@roberth roberth added the backports ignored Seen but not applied label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backports ignored Seen but not applied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants