aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorVolker Weißmann <volker.weissmann@gmx.de>2023-04-27 19:10:32 +0200
committerXavier Claessens <xclaesse@gmail.com>2023-04-27 15:08:46 -0400
commitf5fa56fdfaf979b2bd124b5b7f24f51a029675f8 (patch)
tree8a9f68d22a0f045537da57a273043a29adcf6ffc /mesonbuild
parent1fdcc30ae60f09f98f96765493e6a374c7ff9ee8 (diff)
downloadmeson-f5fa56fdfaf979b2bd124b5b7f24f51a029675f8.zip
meson-f5fa56fdfaf979b2bd124b5b7f24f51a029675f8.tar.gz
meson-f5fa56fdfaf979b2bd124b5b7f24f51a029675f8.tar.bz2
Don't use dyndep scanner when preprocessing
Fixes #11504
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 45b4a11..d61c359 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2954,6 +2954,8 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
def add_dependency_scanner_entries_to_element(self, target, compiler, element, src):
if not self.should_use_dyndeps_for_target(target):
return
+ if isinstance(target, build.CompileTarget):
+ return
extension = os.path.splitext(src.fname)[1][1:]
if extension != 'C':
extension = extension.lower()