Skip to content

i#7447: Fix ninja rebuild problem#7834

Merged
derekbruening merged 1 commit intomasterfrom
i7447-pre-link-target
Mar 10, 2026
Merged

i#7447: Fix ninja rebuild problem#7834
derekbruening merged 1 commit intomasterfrom
i7447-pre-link-target

Conversation

@derekbruening
Copy link
Contributor

Fixes a problem with ninja incorrectly rebuilding targets by using an explicit target for the loader script used to set the preferred base and other aspects of our libaries. An explicit custom target with a dependence provides a top level output which works properly with ninja; ninja does not work well with the cmake PRE_LINK we were using.

Tested in a fresh config where repeated "ninja" does nothing as it should where before it kept rebuilding libraries.

Fixes #7447

Fixes a problem with ninja incorrectly rebuilding targets by using an
explicit target for the loader script used to set the preferred base
and other aspects of our libaries. An explicit custom target with a
dependence provides a top level output which works properly with
ninja; ninja does not work well with the cmake PRE_LINK we were using.

Tested in a fresh config where repeated "ninja" does nothing as it
should where before it kept rebuilding libraries.

Fixes #7447
@derekbruening derekbruening requested a review from edeiana March 10, 2026 21:18
@derekbruening derekbruening merged commit 6df9499 into master Mar 10, 2026
24 checks passed
@derekbruening derekbruening deleted the i7447-pre-link-target branch March 10, 2026 22:16
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.

ninja 1.13 rebuilding multiple targets every time due to stale mtime in ninja log

2 participants