From 0ea28fa63780b2b08ea4c1d4bc026065028c0aa0 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sat, 28 Jan 2023 22:42:09 -0500 Subject: convert some FeatureDeprecated for totally broken stuff, to FeatureBroken We now warn everyone equally that totally ignored sources are bad and should not be used. --- mesonbuild/interpreter/interpreter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mesonbuild') diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 19fc6ae..871c2f2 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -3203,13 +3203,13 @@ class Interpreter(InterpreterBase, HoldableObject): if 'sources' in kwargs: sources += listify(kwargs['sources']) if any(isinstance(s, build.BuildTarget) for s in sources): - FeatureDeprecated.single_use('passing references to built targets as a source file', '1.1.0', self.subproject, - 'consider using `link_with` or `link_whole` if you meant to link, or dropping them as otherwise they are ignored', - node) + FeatureBroken.single_use('passing references to built targets as a source file', '1.1.0', self.subproject, + 'Consider using `link_with` or `link_whole` if you meant to link, or dropping them as otherwise they are ignored.', + node) if any(isinstance(s, build.ExtractedObjects) for s in sources): - FeatureDeprecated.single_use('passing object files as sources', '1.1.0', self.subproject, - 'pass these to the `objects` keyword instead, they are ignored when passed as sources', - node) + FeatureBroken.single_use('passing object files as sources', '1.1.0', self.subproject, + 'Pass these to the `objects` keyword instead, they are ignored when passed as sources.', + node) # Go ahead and drop these here, since they're only allowed through for # backwards compatibility anyway sources = [s for s in sources -- cgit v1.1