Skip to content

meson: stop compiling the generated resources twice - #727

Merged
arch1t3cht merged 1 commit into
TypesettingTools:masterfrom
CoffeeFlux:meson-resrc-once
Oct 8, 2026
Merged

arch1t3cht merged 1 commit into
TypesettingTools:masterfrom
CoffeeFlux:meson-resrc-once

Conversation

@CoffeeFlux

Copy link
Copy Markdown
Member

The aegisub executable listed the generated bitmap.cpp and default_config.cpp in its sources even though libresrc, which it links, already compiles them. Now aegisub only gets the generated headers, which it needs for build ordering.

The saving is small (about 1.3s of CPU), but it also makes the link correct in unity builds, where the duplicate objects collided.

Tested locally on macOS: from-scratch builds with PCH on and off, test suites pass, and the binary has the same resource symbols as before.

🤖 Generated with Claude Code

The aegisub executable listed the generated bitmap.cpp and
default_config.cpp in its sources even though libresrc, which it links,
already compiles them. Only pass the generated headers, which aegisub
needs for build ordering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CoffeeFlux
CoffeeFlux marked this pull request as ready for review October 8, 2026 18:26
@arch1t3cht
arch1t3cht merged commit 1f435cd into TypesettingTools:master Oct 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants