From 83b4f14fcea0f71c94a484809abab59e01952f5b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 7 Mar 2023 00:53:04 -0500 Subject: 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. --- mesonbuild/interpreter/compiler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/interpreter/compiler.py') 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, -- cgit v1.1