summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarch1t3cht <arch1t3cht>2025-01-23 22:58:00 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-01-27 09:33:11 -0800
commit07f595fa98087352940121c87ba9aca0ebc95996 (patch)
tree5d3041045539f54f10215d798042571e4d23e958
parent1e986554ef2071f59fb796cda5e66c448bde6ac9 (diff)
downloadmeson-07f595fa98087352940121c87ba9aca0ebc95996.tar.gz
ninjabackend: Make header deps order-only deps
As the comment to get_generated_headers says, these dependencies should be order-only dependencies. Fixes #10882.
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index dce703fe4..cf9309e25 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -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