aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/compiler.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-03-07 00:53:04 -0500
committerXavier Claessens <xclaesse@gmail.com>2023-03-09 22:04:38 -0500
commit83b4f14fcea0f71c94a484809abab59e01952f5b (patch)
tree751b6df29910a61b84fc8f5c462a6514e68f1f67 /mesonbuild/interpreter/compiler.py
parentd897c300f1a76e068f40f9d98182a80de9d2411b (diff)
downloadmeson-83b4f14fcea0f71c94a484809abab59e01952f5b.zip
meson-83b4f14fcea0f71c94a484809abab59e01952f5b.tar.gz
meson-83b4f14fcea0f71c94a484809abab59e01952f5b.tar.bz2
emit FeatureNew warning for compiler.preprocess used multiple times
In commit c2a55bfe43fae1b44cf49a083297d6755c89e1cc multiple bugs were fixed, but a FeatureNew was only added for the one that was mentioned in the commit message. Make sure to warn users about the reliability of the one that wasn't mentioned, too.
Diffstat (limited to 'mesonbuild/interpreter/compiler.py')
-rw-r--r--mesonbuild/interpreter/compiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/compiler.py b/mesonbuild/interpreter/compiler.py
index 4e88145..d56591b 100644
--- a/mesonbuild/interpreter/compiler.py
+++ b/mesonbuild/interpreter/compiler.py
@@ -776,6 +776,9 @@ class CompilerHolder(ObjectHolder['Compiler']):
location=self.current_node)
tg_counter = next(self.preprocess_uid[self.interpreter.subdir])
+ if tg_counter > 0:
+ FeatureNew.single_use('compiler.preprocess used multiple times', '1.1.0', self.subproject,
+ location=self.current_node)
tg_name = f'preprocessor_{tg_counter}'
tg = build.CompileTarget(
tg_name,