Skip to content

WIP: depend on BMI files instead of object files in depaccumulate#15463

Draft
dcbaker wants to merge 4 commits intomesonbuild:masterfrom
dcbaker:submit/avoid-depaccumulate-if-possible
Draft

WIP: depend on BMI files instead of object files in depaccumulate#15463
dcbaker wants to merge 4 commits intomesonbuild:masterfrom
dcbaker:submit/avoid-depaccumulate-if-possible

Conversation

@dcbaker
Copy link
Member

@dcbaker dcbaker commented Jan 12, 2026

No description provided.

It is possible for a source to change without changing it's module
interfaces. If that happens we don't want to re-run the dep accumulator
and recompile objects using the bmi, we just want to re-link them. This
gets that result by reading in an old json file (if it exists), and only
writing the new file if it as changed. Ninja is instructed to restat the
file.
Which will be used in the next patch
This should result in less rebuilds, but for some reason Ninja is
starting the build objects before the module files are generated. This
only happens when building with parallel jobs, and seems like possibly a
ninja issue, or maybe a gfortran issue?
@dcbaker dcbaker linked an issue Jan 12, 2026 that may be closed by this pull request
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.

Passing of source-path between libraries

1 participant