ninjabackend: Make header deps order-only deps

As the comment to get_generated_headers says, these dependencies should
be order-only dependencies.

Fixes #10882.
This commit is contained in:
arch1t3cht 2025-01-23 22:58:00 +01:00 committed by Dylan Baker
parent 1e986554ef
commit 07f595fa98
1 changed files with 1 additions and 1 deletions

View File

@ -3185,7 +3185,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
d = d.rel_to_builddir(self.build_to_src)
elif not self.has_dir_part(d):
d = os.path.join(self.get_target_private_dir(target), d)
ninja_element.add_dep(d)
ninja_element.add_orderdep(d)
def has_dir_part(self, fname: FileOrString) -> bool:
# FIXME FIXME: The usage of this is a terrible and unreliable hack