diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-02-23 16:05:44 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2023-03-14 16:22:05 +0200 |
commit | 90b6d6dafbbd22c90fa5e58b1de2bb74e7e5a4cf (patch) | |
tree | 045c9a9728387c3cc490b0a396006c771e3670e7 /mesonbuild/ast/introspection.py | |
parent | 535498d3678aed5b5ec5f2cf5c2b63bc977e50eb (diff) | |
download | meson-90b6d6dafbbd22c90fa5e58b1de2bb74e7e5a4cf.zip meson-90b6d6dafbbd22c90fa5e58b1de2bb74e7e5a4cf.tar.gz meson-90b6d6dafbbd22c90fa5e58b1de2bb74e7e5a4cf.tar.bz2 |
rewriter: fix warning about empty sources
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r-- | mesonbuild/ast/introspection.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 194c15b..98f03fd 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -278,6 +278,7 @@ class IntrospectionInterpreter(AstInterpreter): objects = [] # type: T.List[T.Any] empty_sources = [] # type: T.List[T.Any] # Passing the unresolved sources list causes errors + kwargs_reduced['_allow_no_sources'] = True target = targetclass(name, self.subdir, self.subproject, for_machine, empty_sources, [], objects, self.environment, self.coredata.compilers[for_machine], kwargs_reduced) target.process_compilers() |