aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-01-28 22:42:09 -0500
committerEli Schwartz <eschwartz@archlinux.org>2023-06-14 23:12:09 -0400
commit0ea28fa63780b2b08ea4c1d4bc026065028c0aa0 (patch)
tree9ac51435476e411b49c47428220a058afd265bad /mesonbuild
parentf93f443a536c36b5a22284cb8d0bb276e766743c (diff)
downloadmeson-0ea28fa63780b2b08ea4c1d4bc026065028c0aa0.zip
meson-0ea28fa63780b2b08ea4c1d4bc026065028c0aa0.tar.gz
meson-0ea28fa63780b2b08ea4c1d4bc026065028c0aa0.tar.bz2
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.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py12
1 files changed, 6 insertions, 6 deletions
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