aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/compiler.py
diff options
context:
space:
mode:
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,