emit FeatureNew warning for compiler.preprocess used multiple times

In commit c2a55bfe43 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.
pull/11518/head
Eli Schwartz 2 years ago committed by Xavier Claessens
parent d897c300f1
commit 83b4f14fce
  1. 3
      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,

Loading…
Cancel
Save