aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-10-07 09:39:31 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2021-11-23 18:10:15 +0530
commit8581a2b1226bdeb69063d41d46fbc2a8fdc1c2fb (patch)
tree9f12fcfa27cd4c199df8f53d3bac558b85be8977 /mesonbuild/interpreter/interpreter.py
parent47ba919b2146c956c4a7221f4f078804122a6990 (diff)
downloadmeson-8581a2b1226bdeb69063d41d46fbc2a8fdc1c2fb.zip
meson-8581a2b1226bdeb69063d41d46fbc2a8fdc1c2fb.tar.gz
meson-8581a2b1226bdeb69063d41d46fbc2a8fdc1c2fb.tar.bz2
interpreter: extract_objects provides a valid source
This ensures that there is no warnings when running meson on test cases/common/22 object extraction. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 5b108c7..5421343 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -90,11 +90,12 @@ if T.TYPE_CHECKING:
# Input source types passed to Targets
SourceInputs = T.Union[mesonlib.File, build.GeneratedList, build.BuildTarget, build.BothLibraries,
- build.CustomTargetIndex, build.CustomTarget, build.GeneratedList, str]
- # Input source types passed to the build.Target5 classes
+ build.CustomTargetIndex, build.CustomTarget, build.GeneratedList,
+ build.ExtractedObjects, str]
+ # Input source types passed to the build.Target classes
SourceOutputs = T.Union[mesonlib.File, build.GeneratedList,
build.BuildTarget, build.CustomTargetIndex, build.CustomTarget,
- build.GeneratedList]
+ build.ExtractedObjects, build.GeneratedList]
def stringifyUserArguments(args, quote=False):
@@ -2573,7 +2574,7 @@ Try setting b_lundef to false instead.'''.format(self.coredata.options[OptionKey
results.append(s)
elif isinstance(s, (build.GeneratedList, build.BuildTarget,
build.CustomTargetIndex, build.CustomTarget,
- build.GeneratedList)):
+ build.ExtractedObjects)):
results.append(s)
else:
raise InterpreterException(f'Source item is {s!r} instead of '